summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_checker.cc
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2024-02-16 14:30:36 +0000
committer Santiago Aboy Solanes <solanes@google.com> 2024-02-19 14:43:55 +0000
commit96aab3fef9e92ee50467e32ab115644b0dfcb769 (patch)
tree9c8592192ce98a5ad85b25f8e3a5b85f2f4d259a /compiler/optimizing/graph_checker.cc
parent81410830d53ffcf4ce9995ff73b4cb391f76f0c4 (diff)
Do HuntForOriginalReference for the value in WBE
This allows to better detect when we have a null value at compile time. Bug: 260843353 Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: Idb2a37a52fb379ea6264be3258d5babd10cf1273
Diffstat (limited to 'compiler/optimizing/graph_checker.cc')
-rw-r--r--compiler/optimizing/graph_checker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/graph_checker.cc b/compiler/optimizing/graph_checker.cc
index d60ec06097..c880d45d20 100644
--- a/compiler/optimizing/graph_checker.cc
+++ b/compiler/optimizing/graph_checker.cc
@@ -1291,7 +1291,7 @@ bool IsRemovedWriteBarrier(DataType::Type type,
HInstruction* value) {
return write_barrier_kind == WriteBarrierKind::kDontEmit &&
type == DataType::Type::kReference &&
- !value->IsNullConstant();
+ !HuntForOriginalReference(value)->IsNullConstant();
}
void GraphChecker::VisitArraySet(HArraySet* instruction) {