diff options
Diffstat (limited to 'compiler/optimizing/instruction_simplifier.cc')
-rw-r--r-- | compiler/optimizing/instruction_simplifier.cc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/compiler/optimizing/instruction_simplifier.cc b/compiler/optimizing/instruction_simplifier.cc index 820c696033..58f333eb87 100644 --- a/compiler/optimizing/instruction_simplifier.cc +++ b/compiler/optimizing/instruction_simplifier.cc @@ -56,7 +56,6 @@ class InstructionSimplifierVisitor : public HGraphDelegateVisitor { bool TryDeMorganNegationFactoring(HBinaryOperation* op); void VisitShift(HBinaryOperation* shift); - void VisitSuspendCheck(HSuspendCheck* check) OVERRIDE; void VisitEqual(HEqual* equal) OVERRIDE; void VisitNotEqual(HNotEqual* equal) OVERRIDE; void VisitBooleanNot(HBooleanNot* bool_not) OVERRIDE; @@ -554,22 +553,6 @@ void InstructionSimplifierVisitor::VisitStaticFieldSet(HStaticFieldSet* instruct } } -void InstructionSimplifierVisitor::VisitSuspendCheck(HSuspendCheck* check) { - HBasicBlock* block = check->GetBlock(); - // Currently always keep the suspend check at entry. - if (block->IsEntryBlock()) return; - - // Currently always keep suspend checks at loop entry. - if (block->IsLoopHeader() && block->GetFirstInstruction() == check) { - DCHECK(block->GetLoopInformation()->GetSuspendCheck() == check); - return; - } - - // Remove the suspend check that was added at build time for the baseline - // compiler. - block->RemoveInstruction(check); -} - static HCondition* GetOppositeConditionSwapOps(ArenaAllocator* arena, HInstruction* cond) { HInstruction *lhs = cond->InputAt(0); HInstruction *rhs = cond->InputAt(1); |