summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2024-12-03 14:47:17 +0000
committer Santiago Aboy Solanes <solanes@google.com> 2024-12-03 17:25:14 +0000
commitd1852d28b20d2570ff5ae65cf7c542b6ff4accfb (patch)
tree92fb3082e7ffd626e64210f5ae9f9feef0e5b9c4
parent7dcc228bc873a9141e86d2f5f5a54c1aef5be073 (diff)
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
-rw-r--r--compiler/optimizing/nodes.cc2
1 files changed, 0 insertions, 2 deletions
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) {