summaryrefslogtreecommitdiff
path: root/compiler/optimizing/instruction_simplifier_x86.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-11-07 09:36:53 +0100
committer VladimĂ­r Marko <vmarko@google.com> 2024-11-08 09:29:38 +0000
commitf8ac417533d9ebee6d02ad84a1e6a6b056e6720d (patch)
treef0b9d5e9c2f7a3164205745055ed68eb328eb591 /compiler/optimizing/instruction_simplifier_x86.cc
parentb506262278a1b556bea98fe47e919ed4e8bc7d2c (diff)
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
Diffstat (limited to 'compiler/optimizing/instruction_simplifier_x86.cc')
-rw-r--r--compiler/optimizing/instruction_simplifier_x86.cc16
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;