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 {
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;
......
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