Commit 2d7d81a5 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

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}
parent 75ad4cc2
...@@ -183,8 +183,7 @@ class ControlEquivalence : public ZoneObject { ...@@ -183,8 +183,7 @@ class ControlEquivalence : public ZoneObject {
Edge edge = *entry.input; Edge edge = *entry.input;
Node* input = edge.to(); Node* input = edge.to();
++(entry.input); ++(entry.input);
if (NodeProperties::IsControlEdge(edge) && if (NodeProperties::IsControlEdge(edge)) {
NodeProperties::IsControl(input)) {
// Visit next control input. // Visit next control input.
if (!GetData(input)->participates) continue; if (!GetData(input)->participates) continue;
if (GetData(input)->visited) continue; if (GetData(input)->visited) continue;
...@@ -214,8 +213,7 @@ class ControlEquivalence : public ZoneObject { ...@@ -214,8 +213,7 @@ class ControlEquivalence : public ZoneObject {
Edge edge = *entry.use; Edge edge = *entry.use;
Node* use = edge.from(); Node* use = edge.from();
++(entry.use); ++(entry.use);
if (NodeProperties::IsControlEdge(edge) && if (NodeProperties::IsControlEdge(edge)) {
NodeProperties::IsControl(use)) {
// Visit next control use. // Visit next control use.
if (!GetData(use)->participates) continue; if (!GetData(use)->participates) continue;
if (GetData(use)->visited) continue; if (GetData(use)->visited) continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment