summaryrefslogtreecommitdiff
path: root/compiler/optimizing/select_generator.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2023-04-26 09:13:59 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2023-04-26 15:29:51 +0000
commit5150dbe9bcb1fa950f9f3155430413570aaaaf2d (patch)
treed1fb11332ee84a9f31b02d042ce2653bbf7bb0ab /compiler/optimizing/select_generator.cc
parent8890cdfd96cebe59b62dd010747f9babb8fa005c (diff)
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
Diffstat (limited to 'compiler/optimizing/select_generator.cc')
-rw-r--r--compiler/optimizing/select_generator.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/optimizing/select_generator.cc b/compiler/optimizing/select_generator.cc
index 6a10440d11..07065efbb7 100644
--- a/compiler/optimizing/select_generator.cc
+++ b/compiler/optimizing/select_generator.cc
@@ -46,8 +46,7 @@ static bool IsSimpleBlock(HBasicBlock* block) {
} else if (instruction->CanBeMoved() &&
!instruction->HasSideEffects() &&
!instruction->CanThrow()) {
- if (instruction->IsSelect() &&
- instruction->AsSelect()->GetCondition()->GetBlock() == block) {
+ if (instruction->IsSelect() && instruction->AsSelect()->GetCondition()->GetBlock() == block) {
// Count one HCondition and HSelect in the same block as a single instruction.
// This enables finding nested selects.
continue;