[gcc r12-7409] Simplify PRE fix
Richard Biener
rguenth@gcc.gnu.org
Mon Feb 28 11:31:55 GMT 2022
https://gcc.gnu.org/g:800b3191c7506259a7452bde26b0b5ca3810c0cd
commit r12-7409-g800b3191c7506259a7452bde26b0b5ca3810c0cd
Author: Richard Biener <rguenther@suse.de>
Date: Mon Feb 28 12:21:19 2022 +0100
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.
Diff:
---
gcc/tree-ssa-pre.cc | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/gcc/tree-ssa-pre.cc b/gcc/tree-ssa-pre.cc
index ca034ff7153..47d70c85c3c 100644
--- a/gcc/tree-ssa-pre.cc
+++ b/gcc/tree-ssa-pre.cc
@@ -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);
}
More information about the Gcc-cvs
mailing list