diff options
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 43336fa..a576bd1 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -1141,15 +1141,15 @@ valueize_op_1 (tree op) { if (TREE_CODE (op) == SSA_NAME) { - tree tem = get_constant_value (op); - if (tem) - return tem; /* If the definition may be simulated again we cannot follow this SSA edge as the SSA propagator does not necessarily re-visit the use. */ gimple def_stmt = SSA_NAME_DEF_STMT (op); if (prop_simulate_again_p (def_stmt)) return NULL_TREE; + tree tem = get_constant_value (op); + if (tem) + return tem; } return op; } |