Commit 251c7313 authored by tebbi's avatar tebbi Committed by Commit bot

[turbofan] removed osr typer

R=bmeurer@chromium.org

BUG=

Review-Url: https://codereview.chromium.org/2549093002
Cr-Commit-Position: refs/heads/master@{#41486}
parent b9d93073
......@@ -268,28 +268,7 @@ void SetTypeForOsrValue(Node* osr_value, Node* loop,
}
}
OsrGuardType guard_type = OsrGuardType::kAny;
// Find the phi that uses the OsrGuard node and get the type from
// there. Skip the search if the OsrGuard does not have value use
// (i.e., if there is other use beyond the effect use).
if (OsrGuardTypeOf(osr_guard->op()) == OsrGuardType::kUninitialized &&
osr_guard->UseCount() > 1) {
Type* type = nullptr;
for (Node* use : osr_guard->uses()) {
if (use->opcode() == IrOpcode::kPhi) {
if (NodeProperties::GetControlInput(use) != loop) continue;
CHECK_NULL(type);
type = NodeProperties::GetType(use);
}
}
CHECK_NOT_NULL(type);
if (type->Is(Type::SignedSmall())) {
guard_type = OsrGuardType::kSignedSmall;
}
}
NodeProperties::ChangeOp(osr_guard, common->OsrGuard(guard_type));
NodeProperties::ChangeOp(osr_guard, common->OsrGuard(OsrGuardType::kAny));
}
} // namespace
......
......@@ -829,21 +829,6 @@ struct TyperPhase {
}
};
struct OsrTyperPhase {
static const char* phase_name() { return "osr typer"; }
void Run(PipelineData* data, Zone* temp_zone) {
NodeVector roots(temp_zone);
data->jsgraph()->GetCachedNodes(&roots);
// Dummy induction variable optimizer: at the moment, we do not try
// to compute loop variable bounds on OSR.
LoopVariableOptimizer induction_vars(data->jsgraph()->graph(),
data->common(), temp_zone);
Typer typer(data->isolate(), Typer::kNoFlags, data->graph());
typer.Run(roots, &induction_vars);
}
};
struct UntyperPhase {
static const char* phase_name() { return "untyper"; }
......@@ -1496,8 +1481,6 @@ bool PipelineImpl::CreateGraph() {
// Perform OSR deconstruction.
if (info()->is_osr()) {
Run<OsrTyperPhase>();
Run<OsrDeconstructionPhase>();
Run<UntyperPhase>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment