aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-threadedge.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-threadedge.cc')
-rw-r--r--gcc/tree-ssa-threadedge.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-ssa-threadedge.cc b/gcc/tree-ssa-threadedge.cc
index a70aebd..e64e4f2 100644
--- a/gcc/tree-ssa-threadedge.cc
+++ b/gcc/tree-ssa-threadedge.cc
@@ -1377,7 +1377,9 @@ jt_state::register_equivs_stmt (gimple *stmt, basic_block bb,
SET_USE (use_p, tmp);
}
- cached_lhs = simplifier->simplify (stmt, stmt, bb, this);
+ /* Do not pass state to avoid calling the ranger with the
+ temporarily altered IL. */
+ cached_lhs = simplifier->simplify (stmt, stmt, bb, /*state=*/NULL);
/* Restore the statement's original uses/defs. */
i = 0;