aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-pre.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-04-14 10:53:30 +0200
committerRichard Biener <rguenther@suse.de>2021-04-23 13:05:45 +0200
commit35b2be219fc1934ae040d045e355680a83d839c4 (patch)
treefc0d9490569f66db1b5ff3668c7671b772529e7e /gcc/tree-ssa-pre.c
parent58ad6b2802592f1448eed48e8ad4e0e87985cecb (diff)
downloadgcc-35b2be219fc1934ae040d045e355680a83d839c4.zip
gcc-35b2be219fc1934ae040d045e355680a83d839c4.tar.gz
gcc-35b2be219fc1934ae040d045e355680a83d839c4.tar.bz2
VEC_COND_EXPR code cleanup
This removes now unnecessary special-casings of VEC_COND_EXPRs after making its first operand a gimple value. 2021-04-14 Richard Biener <rguenther@suse.de> * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing. (capture_info::capture_info): Likewise. (capture_info::walk_match): Likewise. (expr::gen_transform): Likewise. (dt_simplify::gen_1): Likewise. * gimple-match-head.c (maybe_resimplify_conditional_op): Remove VEC_COND_EXPR special-casing. (gimple_simplify): Likewise. * gimple.c (gimple_could_trap_p_1): Adjust. * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR to participate in PRE.
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r--gcc/tree-ssa-pre.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index 91dd492..2803b58 100644
--- a/gcc/tree-ssa-pre.c
+++ b/gcc/tree-ssa-pre.c
@@ -4038,11 +4038,10 @@ compute_avail (void)
enum tree_code code = gimple_assign_rhs_code (stmt);
vn_nary_op_t nary;
- /* COND_EXPR and VEC_COND_EXPR are awkward in
- that they contain an embedded complex expression.
- Don't even try to shove those through PRE. */
- if (code == COND_EXPR
- || code == VEC_COND_EXPR)
+ /* COND_EXPR is awkward in that it contains an
+ embedded complex expression.
+ Don't even try to shove it through PRE. */
+ if (code == COND_EXPR)
continue;
vn_nary_op_lookup_stmt (stmt, &nary);