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

Unified Diff: src/compiler/ast-graph-builder.h

Issue 1193833002: [turbofan] Proper dead code elimination as regular reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
Index: src/compiler/ast-graph-builder.h
diff --git a/src/compiler/ast-graph-builder.h b/src/compiler/ast-graph-builder.h
index 69b356063b15b3204c04bd91c853a0acbb7af4b0..f80c1f6dd6bc33c708307e0240883d43bfaee9c0 100644
--- a/src/compiler/ast-graph-builder.h
+++ b/src/compiler/ast-graph-builder.h
@@ -489,7 +489,7 @@ class AstGraphBuilder::Environment : public ZoneObject {
liveness_block_ = nullptr;
}
bool IsMarkedAsUnreachable() {
- return GetControlDependency()->opcode() == IrOpcode::kDeadControl;
+ return GetControlDependency()->opcode() == IrOpcode::kDead;
}
// Merge another environment into this one.

Powered by Google App Engine
This is Rietveld 408576698