summaryrefslogtreecommitdiff
path: root/compiler/optimizing/scheduler_arm64.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/optimizing/scheduler_arm64.cc')
-rw-r--r--compiler/optimizing/scheduler_arm64.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/optimizing/scheduler_arm64.cc b/compiler/optimizing/scheduler_arm64.cc
index 0c178f6d6e..3071afd951 100644
--- a/compiler/optimizing/scheduler_arm64.cc
+++ b/compiler/optimizing/scheduler_arm64.cc
@@ -91,8 +91,7 @@ void SchedulingLatencyVisitorARM64::VisitDiv(HDiv* instr) {
default:
// Follow the code path used by code generation.
if (instr->GetRight()->IsConstant()) {
- // TODO: Remove "OrNull".
- int64_t imm = Int64FromConstant(instr->GetRight()->AsConstantOrNull());
+ int64_t imm = Int64FromConstant(instr->GetRight()->AsConstant());
if (imm == 0) {
last_visited_internal_latency_ = 0;
last_visited_latency_ = 0;
@@ -160,8 +159,7 @@ void SchedulingLatencyVisitorARM64::VisitRem(HRem* instruction) {
} else {
// Follow the code path used by code generation.
if (instruction->GetRight()->IsConstant()) {
- // TODO: Remove "OrNull".
- int64_t imm = Int64FromConstant(instruction->GetRight()->AsConstantOrNull());
+ int64_t imm = Int64FromConstant(instruction->GetRight()->AsConstant());
if (imm == 0) {
last_visited_internal_latency_ = 0;
last_visited_latency_ = 0;