summaryrefslogtreecommitdiff
path: root/compiler/optimizing/ssa_liveness_analysis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/optimizing/ssa_liveness_analysis.cc')
-rw-r--r--compiler/optimizing/ssa_liveness_analysis.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/optimizing/ssa_liveness_analysis.cc b/compiler/optimizing/ssa_liveness_analysis.cc
index 317e0999d7..b36ccbe02b 100644
--- a/compiler/optimizing/ssa_liveness_analysis.cc
+++ b/compiler/optimizing/ssa_liveness_analysis.cc
@@ -496,7 +496,8 @@ size_t LiveInterval::NumberOfSpillSlotsNeeded() const {
if (definition->IsPhi()) {
definition = definition->InputAt(1); // SIMD always appears on back-edge
}
- return definition->AsVecOperation()->GetVectorNumberOfBytes() / kVRegSize;
+ // TODO: Remove "OrNull".
+ return definition->AsVecOperationOrNull()->GetVectorNumberOfBytes() / kVRegSize;
}
// Return number of needed spill slots based on type.
return (type_ == DataType::Type::kInt64 || type_ == DataType::Type::kFloat64) ? 2 : 1;