tree-ssa-forwprop.c (simplify_builtin_call): Do not remove stmt at gsi_p, instead...
authorRichard Biener <rguenther@suse.de>
Fri, 16 Aug 2019 09:27:34 +0000 (09:27 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 16 Aug 2019 09:27:34 +0000 (09:27 +0000)
commitcc19f80ceb27cc3d31d259ebecaad12005acfd7e
treec87e2dd89dcabb30f509577e048f53061fba1d1b
parent4f4af789f94ee71f69155770291bd94c91c4109a
tree-ssa-forwprop.c (simplify_builtin_call): Do not remove stmt at gsi_p, instead replace it with a NOP removed later.

2019-08-16  Richard Biener  <rguenther@suse.de>

* tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
stmt at gsi_p, instead replace it with a NOP removed later.
(pass_forwprop::execute): Fully propagate lattice, DCE stmts
that became dead because of that.

fortran/
* trans-intrinsic.c (gfc_conv_intrinsic_findloc): Initialize
forward_branch to avoid bogus uninitialized warning.

* gcc.dg/tree-ssa/forwprop-31.c: Adjust.

From-SVN: r274563
gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/forwprop-31.c
gcc/tree-ssa-forwprop.c