From f8ac417533d9ebee6d02ad84a1e6a6b056e6720d Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 7 Nov 2024 09:36:53 +0100 Subject: Clean up after introducing `HRol`. Clean up after https://android-review.googlesource.com/3262277 . Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: I11d3b2ffd2305a841fa44345b7d2bd09de21b42d --- compiler/optimizing/instruction_simplifier_x86.cc | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'compiler/optimizing/instruction_simplifier_x86.cc') 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; -- cgit v1.2.3-59-g8ed1b