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/typer.cc

Issue 2222513002: [turbofan] Insert sigma nodes for loop variable backedge. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments Created 4 years, 4 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/simplified-lowering.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/typer.cc
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
index a4e3c64911f08fd4b58c73b3dcd7f31cb9964feb..d864ea8bae74b5420ffb9866ba83a9051275f4c7 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -4,6 +4,8 @@
#include "src/compiler/typer.h"
+#include <iomanip>
+
#include "src/base/flags.h"
#include "src/bootstrapper.h"
#include "src/compiler/common-operator.h"
@@ -337,7 +339,7 @@ void Typer::Run(const NodeVector& roots,
graph_reducer.ReduceGraph();
if (induction_vars != nullptr) {
- induction_vars->ChangeFromInductionVariablePhis();
+ induction_vars->ChangeToPhisAndInsertGuards();
}
}
@@ -695,6 +697,7 @@ Type* Typer::Visitor::TypeInductionVariablePhi(Node* node) {
}
if (FLAG_trace_turbo_loop) {
OFStream os(stdout);
+ os << std::setprecision(10);
os << "Loop (" << NodeProperties::GetControlInput(node)->id()
<< ") variable bounds for phi " << node->id() << ": (" << min << ", "
<< max << ")\n";
@@ -765,6 +768,11 @@ Type* Typer::Visitor::TypeProjection(Node* node) {
return Type::Any();
}
+Type* Typer::Visitor::TypeTypeGuard(Node* node) {
+ Type* const type = Operand(node, 0);
+ return typer_->operation_typer()->TypeTypeGuard(node->op(), type);
+}
+
Type* Typer::Visitor::TypeDead(Node* node) { return Type::None(); }
// JS comparison operators.
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698