From 2d7d81a502d624428f4c05181099f4502bf105b6 Mon Sep 17 00:00:00 2001 From: mstarzinger Date: Wed, 11 Feb 2015 08:21:01 -0800 Subject: [PATCH] Remove redundant check from ControlEquivalence traversal. R=jarin@chromium.org TEST=unittests/ControlEquivalenceTest Review URL: https://codereview.chromium.org/916823002 Cr-Commit-Position: refs/heads/master@{#26591} --- src/compiler/control-equivalence.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/compiler/control-equivalence.h b/src/compiler/control-equivalence.h index 5c97f01..db05e3e7 100644 --- a/src/compiler/control-equivalence.h +++ b/src/compiler/control-equivalence.h @@ -183,8 +183,7 @@ class ControlEquivalence : public ZoneObject { Edge edge = *entry.input; Node* input = edge.to(); ++(entry.input); - if (NodeProperties::IsControlEdge(edge) && - NodeProperties::IsControl(input)) { + if (NodeProperties::IsControlEdge(edge)) { // Visit next control input. if (!GetData(input)->participates) continue; if (GetData(input)->visited) continue; @@ -214,8 +213,7 @@ class ControlEquivalence : public ZoneObject { Edge edge = *entry.use; Node* use = edge.from(); ++(entry.use); - if (NodeProperties::IsControlEdge(edge) && - NodeProperties::IsControl(use)) { + if (NodeProperties::IsControlEdge(edge)) { // Visit next control use. if (!GetData(use)->participates) continue; if (GetData(use)->visited) continue; -- 2.7.4