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

Unified Diff: src/compiler/opcodes.h

Issue 816053002: [turbofan] First version of loop peeling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/opcodes.h
diff --git a/src/compiler/opcodes.h b/src/compiler/opcodes.h
index fa85974c0136e2ff46b8dcb2007efc75bfed89b3..a24a3accd95a2ed2425a825197e04d3a34365098 100644
--- a/src/compiler/opcodes.h
+++ b/src/compiler/opcodes.h
@@ -294,6 +294,10 @@ class IrOpcode {
static bool IsLeafOpcode(Value value) {
return kInt32Constant <= value && value <= kHeapConstant;
}
+
+ static bool IsPhiOpcode(Value val) {
+ return val == kPhi || val == kEffectPhi;
+ }
};
} // namespace compiler

Powered by Google App Engine
This is Rietveld 408576698