From d1852d28b20d2570ff5ae65cf7c542b6ff4accfb Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Tue, 3 Dec 2024 14:47:17 +0000 Subject: cleanup: Remove extra SetGraph calls DeleteDeadEmptyBlock does SetGraph(nullptr) as the last step. Test: art/test/testrunner/testrunner.py --host --64 -b --optimizing Change-Id: I8a155d22ff62d55bd07c1f3733e8891c2f9fe3de --- compiler/optimizing/nodes.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'compiler/optimizing/nodes.cc') diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 31e999a282..fc7d0a52ab 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -2476,7 +2476,6 @@ void HBasicBlock::DisconnectAndDelete() { // (7) Delete from the graph, update reverse post order. graph_->DeleteDeadEmptyBlock(this); - SetGraph(nullptr); } void HBasicBlock::DisconnectFromSuccessors(const ArenaBitVector* visited) { @@ -2593,7 +2592,6 @@ void HBasicBlock::MergeWith(HBasicBlock* other) { // Delete `other` from the graph. The function updates reverse post order. graph_->DeleteDeadEmptyBlock(other); - other->SetGraph(nullptr); } void HBasicBlock::MergeWithInlined(HBasicBlock* other) { -- cgit v1.2.3-59-g8ed1b