diff options
| author | 2015-11-23 11:23:03 +0000 | |
|---|---|---|
| committer | 2015-11-23 11:23:03 +0000 | |
| commit | f2550c7330c5bc012a6aafdcc0188472ed332dc1 (patch) | |
| tree | bea248023c5823bbb28a1864655e3afce9226400 /compiler/optimizing/instruction_simplifier.cc | |
| parent | 7d1e7e8dc4a829bef7786540cbc7aa09706bc90c (diff) | |
| parent | f180af0fc0d0bd981dd6356848df2ba237e1a227 (diff) | |
Merge "Optimizing/ARM: Improve long shifts by 1."
am: f180af0fc0
* commit 'f180af0fc0d0bd981dd6356848df2ba237e1a227':
Optimizing/ARM: Improve long shifts by 1.
Diffstat (limited to 'compiler/optimizing/instruction_simplifier.cc')
| -rw-r--r-- | compiler/optimizing/instruction_simplifier.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/optimizing/instruction_simplifier.cc b/compiler/optimizing/instruction_simplifier.cc index d82b5d2033..2f3df7fc68 100644 --- a/compiler/optimizing/instruction_simplifier.cc +++ b/compiler/optimizing/instruction_simplifier.cc @@ -169,16 +169,6 @@ void InstructionSimplifierVisitor::VisitShift(HBinaryOperation* instruction) { // src instruction->ReplaceWith(input_other); instruction->GetBlock()->RemoveInstruction(instruction); - } else if (instruction->IsShl() && input_cst->IsOne()) { - // Replace Shl looking like - // SHL dst, src, 1 - // with - // ADD dst, src, src - HAdd *add = new(GetGraph()->GetArena()) HAdd(instruction->GetType(), - input_other, - input_other); - instruction->GetBlock()->ReplaceAndRemoveInstructionWith(instruction, add); - RecordSimplification(); } } } |