Commit 4f684882 authored by jarin's avatar jarin Committed by Commit bot

[turbo] Also weaken induction variables in the typer.

Review-Url: https://codereview.chromium.org/2224943002
Cr-Commit-Position: refs/heads/master@{#38440}
parent a2a59723
......@@ -304,7 +304,8 @@ class Typer::Visitor : public Reducer {
if (NodeProperties::IsTyped(node)) {
// Widen the type of a previously typed node.
Type* previous = NodeProperties::GetType(node);
if (node->opcode() == IrOpcode::kPhi) {
if (node->opcode() == IrOpcode::kPhi ||
node->opcode() == IrOpcode::kInductionVariablePhi) {
// Speed up termination in the presence of range types:
current = Weaken(node, current, previous);
}
......
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