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

Unified Diff: src/compiler/effect-control-linearizer.cc

Issue 1980383002: [turbofan] Kill type Guard nodes during effect/control linearization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: For "reason" wasm requires Begin/FinishRegion ATM. Created 4 years, 7 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 | « src/compiler/effect-control-linearizer.h ('k') | src/compiler/instruction-selector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/effect-control-linearizer.cc
diff --git a/src/compiler/effect-control-linearizer.cc b/src/compiler/effect-control-linearizer.cc
index dabf52dce4d88cf3eaba9867e753634d3fdda6c3..1f751d8af03a1655acf0a78db4452358a42166e9 100644
--- a/src/compiler/effect-control-linearizer.cc
+++ b/src/compiler/effect-control-linearizer.cc
@@ -342,6 +342,9 @@ bool EffectControlLinearizer::TryWireInStateEffect(Node* node, Node** effect,
Node** control) {
ValueEffectControl state(nullptr, nullptr, nullptr);
switch (node->opcode()) {
+ case IrOpcode::kGuard:
+ state = LowerGuard(node, *effect, *control);
+ break;
case IrOpcode::kChangeBitToTagged:
state = LowerChangeBitToTagged(node, *effect, *control);
break;
@@ -402,6 +405,12 @@ bool EffectControlLinearizer::TryWireInStateEffect(Node* node, Node** effect,
return true;
}
+EffectControlLinearizer::ValueEffectControl EffectControlLinearizer::LowerGuard(
+ Node* node, Node* effect, Node* control) {
+ Node* value = node->InputAt(0);
+ return ValueEffectControl(value, effect, control);
+}
+
EffectControlLinearizer::ValueEffectControl
EffectControlLinearizer::LowerChangeFloat64ToTagged(Node* node, Node* effect,
Node* control) {
« no previous file with comments | « src/compiler/effect-control-linearizer.h ('k') | src/compiler/instruction-selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698