Index: runtime/vm/redundancy_elimination.cc |
diff --git a/runtime/vm/redundancy_elimination.cc b/runtime/vm/redundancy_elimination.cc |
index 9a8c912bf4ece4f4203256e229becfc9b7286f6c..32fe07be391a6001033337bcfd889b56779c177e 100644 |
--- a/runtime/vm/redundancy_elimination.cc |
+++ b/runtime/vm/redundancy_elimination.cc |
@@ -2539,8 +2539,7 @@ class StoreOptimizer : public LivenessAnalysis { |
case Instruction::kStoreInstanceField: { |
StoreInstanceFieldInstr* store_instance = instr->AsStoreInstanceField(); |
// Can't eliminate stores that initialize fields. |
- return !(store_instance->is_potential_unboxed_initialization() || |
- store_instance->is_object_reference_initialization()); |
+ return !store_instance->is_initialization(); |
} |
case Instruction::kStoreIndexed: |
case Instruction::kStoreStaticField: |