diff options
author | Richard Biener <rguenther@suse.de> | 2020-05-20 11:00:57 +0200 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:03:53 -0300 |
commit | 9bd060e0ea8031cc323a7a6200f934ea7b4fc55a (patch) | |
tree | efef604cd21fa101e1da493182e18fc88d86a8e8 /gcc/tree-inline.c | |
parent | 8383533614ea6d9f35b916178d79a855c60755ec (diff) | |
download | gcc-9bd060e0ea8031cc323a7a6200f934ea7b4fc55a.zip gcc-9bd060e0ea8031cc323a7a6200f934ea7b4fc55a.tar.gz gcc-9bd060e0ea8031cc323a7a6200f934ea7b4fc55a.tar.bz2 |
middle-end/95231 - revert parts of PR95171
I mistook the opportunity to also "fix" the [VEC_]COND_EXPR case
for PR95171 but I was wrong in that it doesn't need the fix and
in the actual fix as well. The following just reverts that part.
2020-05-20 Richard Biener <rguenther@suse.de>
PR middle-end/95231
* tree-inline.c (remap_gimple_stmt): Revert adjusting
COND_EXPR and VEC_COND_EXPR for a -fnon-call-exception boundary.
* g++.dg/other/pr95231.C: New testcase.
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 943f3f9..3160ca3 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1974,17 +1974,6 @@ remap_gimple_stmt (gimple *stmt, copy_body_data *id) gimple_cond_set_lhs (cond, gimple_assign_lhs (cmp)); gimple_cond_set_rhs (cond, boolean_false_node); } - if (gassign *ass = dyn_cast <gassign *> (copy)) - if ((gimple_assign_rhs_code (ass) == COND_EXPR - || gimple_assign_rhs_code (ass) == VEC_COND_EXPR) - && gimple_could_trap_p (ass)) - { - gassign *cmp - = gimple_build_assign (make_ssa_name (boolean_type_node), - gimple_assign_rhs1 (ass)); - gimple_seq_add_stmt (&stmts, cmp); - gimple_assign_set_rhs1 (ass, gimple_assign_lhs (cmp)); - } } gimple_seq_add_stmt (&stmts, copy); |