diff options
Diffstat (limited to 'compiler/optimizing/instruction_simplifier_x86.cc')
-rw-r--r-- | compiler/optimizing/instruction_simplifier_x86.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/compiler/optimizing/instruction_simplifier_x86.cc b/compiler/optimizing/instruction_simplifier_x86.cc index e1c783e5b8..9b5fb52509 100644 --- a/compiler/optimizing/instruction_simplifier_x86.cc +++ b/compiler/optimizing/instruction_simplifier_x86.cc @@ -48,7 +48,6 @@ class InstructionSimplifierX86Visitor final : public HGraphVisitor { } void VisitAnd(HAnd * instruction) override; - void VisitRol(HRol* instruction) override; void VisitXor(HXor* instruction) override; private: @@ -71,21 +70,6 @@ void InstructionSimplifierX86Visitor::VisitAnd(HAnd* instruction) { } } -void InstructionSimplifierX86Visitor::VisitRol(HRol* rol) { - if (rol->GetType() != DataType::Type::kInt64) { - return; - } - - HBasicBlock* block = rol->GetBlock(); - HGraph* graph = block->GetGraph(); - ArenaAllocator* allocator = graph->GetAllocator(); - - HNeg* neg = new (allocator) HNeg(DataType::Type::kInt32, rol->GetRight()); - block->InsertInstructionBefore(neg, rol); - HRor* ror = new (allocator) HRor(rol->GetType(), rol->GetLeft(), neg); - block->ReplaceAndRemoveInstructionWith(rol, ror); -} - void InstructionSimplifierX86Visitor::VisitXor(HXor* instruction) { if (!HasAVX2()) { return; |