diff options
author | 2024-10-10 17:06:27 +0200 | |
---|---|---|
committer | 2024-10-11 10:42:12 +0000 | |
commit | 5701a59d182cee01885717d48110903fe740159a (patch) | |
tree | 546fc9cef271c26bd2adbe66aa793cfd1ce99a7e /compiler/optimizing/instruction_simplifier.cc | |
parent | d7118f354652f570e0d8a5e6092fff962ae1a25d (diff) |
Move `HCondition` creation function to `HCondition`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: Ibf7d27af872bf0bc9a91d1698d66047947b513f3
Diffstat (limited to 'compiler/optimizing/instruction_simplifier.cc')
-rw-r--r-- | compiler/optimizing/instruction_simplifier.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/instruction_simplifier.cc b/compiler/optimizing/instruction_simplifier.cc index d12e7e7af0..abc5dae016 100644 --- a/compiler/optimizing/instruction_simplifier.cc +++ b/compiler/optimizing/instruction_simplifier.cc @@ -911,7 +911,7 @@ HInstruction* InstructionSimplifierVisitor::InsertOppositeCondition(HInstruction HInstruction* lhs = cond->InputAt(0); HInstruction* rhs = cond->InputAt(1); HInstruction* replacement = - GetGraph()->CreateCondition(cond->AsCondition()->GetOppositeCondition(), lhs, rhs); + HCondition::Create(GetGraph(), cond->AsCondition()->GetOppositeCondition(), lhs, rhs); cursor->GetBlock()->InsertInstructionBefore(replacement, cursor); return replacement; } else if (cond->IsIntConstant()) { @@ -1879,7 +1879,7 @@ void InstructionSimplifierVisitor::VisitCondition(HCondition* condition) { HInstruction* right = condition->GetRight(); if (left->IsConstant() && !right->IsConstant()) { IfCondition new_cond = GetOppositeConditionForOperandSwap(condition->GetCondition()); - HCondition* replacement = GetGraph()->CreateCondition(new_cond, right, left); + HCondition* replacement = HCondition::Create(GetGraph(), new_cond, right, left); block->ReplaceAndRemoveInstructionWith(condition, replacement); // If it is a FP condition, we must set the opposite bias. if (condition->IsLtBias()) { |