Simplify PRE fix
The following reverts a part of the PR103037 fix which is no longer necessary after the fix for PR104700. That makes the possible cummulative backport smaller. 2022-02-28 Richard Biener <rguenther@suse.de> * tree-ssa-pre.cc (compute_avail): Revert part of last change.
This commit is contained in:
parent
37b583b9d7
commit
800b3191c7
|
@ -3993,14 +3993,7 @@ compute_avail (function *fun)
|
|||
FOR_EACH_SSA_TREE_OPERAND (op, stmt, iter, SSA_OP_DEF)
|
||||
{
|
||||
pre_expr e = get_or_alloc_expr_for_name (op);
|
||||
unsigned value_id = get_expr_value_id (e);
|
||||
if (value_id_constant_p (value_id))
|
||||
{
|
||||
get_or_alloc_expr_for_constant (VN_INFO (op)->valnum);
|
||||
continue;
|
||||
}
|
||||
|
||||
add_to_value (value_id, e);
|
||||
add_to_value (get_expr_value_id (e), e);
|
||||
bitmap_insert_into_set (TMP_GEN (block), e);
|
||||
bitmap_value_insert_into_set (AVAIL_OUT (block), e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue