From 96aab3fef9e92ee50467e32ab115644b0dfcb769 Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Fri, 16 Feb 2024 14:30:36 +0000 Subject: 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 --- compiler/optimizing/graph_checker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/graph_checker.cc') 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) { -- cgit v1.2.3-59-g8ed1b