diff options
author | 2024-10-30 12:02:05 +0000 | |
---|---|---|
committer | 2024-10-30 14:53:00 +0000 | |
commit | bc3ae299266d177ef7e9d50c956cbc366454cf67 (patch) | |
tree | 9cfca5a5f79ad637b81a49049ff3e140bb087f6d /compiler/optimizing/select_generator.cc | |
parent | cbf82dafb9bfe0543a64a4a471765069516e9456 (diff) |
cleanup FixUpInstructionType
It was expecting to have an HSelect as an input, so we might
as well encode that with the C++ types. Rename it to
FixUpSelectType.
Also move the instructions around so that the ScopedObjectAccess
scope is smaller.
As a drive-by, move ScopedObjectAccess to CheckAgainstUpperBound
so that we only call it in a subset of cases.
Test: art/test/testrunner/testrunner.py --host --64 -b --optimizing
Change-Id: Id6f179e68e0a460577d5e42b8c431f3d035405a4
Diffstat (limited to 'compiler/optimizing/select_generator.cc')
-rw-r--r-- | compiler/optimizing/select_generator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/select_generator.cc b/compiler/optimizing/select_generator.cc index 07065efbb7..d5781c8d38 100644 --- a/compiler/optimizing/select_generator.cc +++ b/compiler/optimizing/select_generator.cc @@ -156,7 +156,7 @@ bool HSelectGenerator::TryGenerateSelectSimpleDiamondPattern( if (both_successors_return) { if (true_value->GetType() == DataType::Type::kReference) { DCHECK(false_value->GetType() == DataType::Type::kReference); - ReferenceTypePropagation::FixUpInstructionType(select, graph_->GetHandleCache()); + ReferenceTypePropagation::FixUpSelectType(select, graph_->GetHandleCache()); } } else if (phi->GetType() == DataType::Type::kReference) { select->SetReferenceTypeInfoIfValid(phi->GetReferenceTypeInfo()); |