diff options
author | 2022-11-04 11:22:45 +0000 | |
---|---|---|
committer | 2022-11-04 17:27:35 +0000 | |
commit | 6df70e9ccdf89c99350a5495e68b493167872ceb (patch) | |
tree | 614438ce06cb66c87d0d077349d531958f06bd73 /compiler/optimizing | |
parent | f6fb924bae391c2aa663e55665467115b098520b (diff) |
Cleanup: Use HBasicBlock's IsCatchBlock method
We were doing the same thing as that method does so just call it.
Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b
Change-Id: I5a80f0a8c536489f382b9149ccdc1b9f6b251ae3
Diffstat (limited to 'compiler/optimizing')
-rw-r--r-- | compiler/optimizing/load_store_elimination.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/optimizing/load_store_elimination.cc b/compiler/optimizing/load_store_elimination.cc index f520f9c988..2ee836a9bd 100644 --- a/compiler/optimizing/load_store_elimination.cc +++ b/compiler/optimizing/load_store_elimination.cc @@ -1752,8 +1752,7 @@ void LSEVisitor::MergePredecessorRecords(HBasicBlock* block) { ScopedArenaVector<ValueRecord>& heap_values = heap_values_for_[block->GetBlockId()]; DCHECK(heap_values.empty()); size_t num_heap_locations = heap_location_collector_.GetNumberOfHeapLocations(); - if (block->GetPredecessors().empty() || (block->GetTryCatchInformation() != nullptr && - block->GetTryCatchInformation()->IsCatchBlock())) { + if (block->GetPredecessors().empty() || block->IsCatchBlock()) { DCHECK_IMPLIES(block->GetPredecessors().empty(), block->IsEntryBlock()); heap_values.resize(num_heap_locations, {/*value=*/Value::PureUnknown(), /*stored_by=*/Value::PureUnknown()}); |