Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: src/compiler/control-equivalence.h

Issue 916823002: Remove redundant check from ControlEquivalence traversal. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/control-equivalence.h
diff --git a/src/compiler/control-equivalence.h b/src/compiler/control-equivalence.h
index 5c97f01e87671d1ff67fc6018cb8f099accc31e0..db05e3e73d0328f417b33fae4a21fc6176b9654b 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698