From 5150dbe9bcb1fa950f9f3155430413570aaaaf2d Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 26 Apr 2023 09:13:59 +0000 Subject: Remove unnecessary `HInstruction::As##type()` calls. Also so some style cleanup. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: I34304acb39bc5197dde03543a6c157b3c319f94f --- compiler/optimizing/instruction_builder.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler/optimizing/instruction_builder.cc') diff --git a/compiler/optimizing/instruction_builder.cc b/compiler/optimizing/instruction_builder.cc index f9a513804c..e99b8a02d1 100644 --- a/compiler/optimizing/instruction_builder.cc +++ b/compiler/optimizing/instruction_builder.cc @@ -2348,9 +2348,9 @@ void HInstructionBuilder::BuildCheckedDivRem(uint16_t out_vreg, second = LoadLocal(second_vreg_or_constant, type); } - if (!second_is_constant - || (type == DataType::Type::kInt32 && second->AsIntConstant()->GetValue() == 0) - || (type == DataType::Type::kInt64 && second->AsLongConstant()->GetValue() == 0)) { + if (!second_is_constant || + (type == DataType::Type::kInt32 && second->AsIntConstant()->GetValue() == 0) || + (type == DataType::Type::kInt64 && second->AsLongConstant()->GetValue() == 0)) { second = new (allocator_) HDivZeroCheck(second, dex_pc); AppendInstruction(second); } -- cgit v1.2.3-59-g8ed1b