Commit cc19f80c by Richard Biener Committed by Richard Biener

tree-ssa-forwprop.c (simplify_builtin_call): Do not remove stmt at gsi_p,…

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
parent 4f4af789
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.
2019-08-16 Aldy Hernandez <aldyh@redhat.com> 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
* gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
......
2019-08-16 Richard Biener <rguenther@suse.de>
* trans-intrinsic.c (gfc_conv_intrinsic_findloc): Initialize
forward_branch to avoid bogus uninitialized warning.
2019-08-15 Thomas Koenig <tkoenig@gcc.gnu.org> 2019-08-15 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/91443 PR fortran/91443
......
...@@ -5428,7 +5428,7 @@ gfc_conv_intrinsic_findloc (gfc_se *se, gfc_expr *expr) ...@@ -5428,7 +5428,7 @@ gfc_conv_intrinsic_findloc (gfc_se *se, gfc_expr *expr)
tree type; tree type;
tree tmp; tree tmp;
tree found; tree found;
tree forward_branch; tree forward_branch = NULL_TREE;
tree back_branch; tree back_branch;
gfc_loopinfo loop; gfc_loopinfo loop;
gfc_ss *arrayss; gfc_ss *arrayss;
......
2019-08-16 Richard Biener <rguenther@suse.de>
* gcc.dg/tree-ssa/forwprop-31.c: Adjust.
2019-08-16 Martin Liska <mliska@suse.cz> 2019-08-16 Martin Liska <mliska@suse.cz>
PR ipa/91447 PR ipa/91447
......
...@@ -9,7 +9,6 @@ int foo (int x) ...@@ -9,7 +9,6 @@ int foo (int x)
return w - z; /* becomes 0 */ return w - z; /* becomes 0 */
} }
/* The original y = 0 stmt is also retained. */ /* Only z = x + 1 is retained. */
/* { dg-final { scan-tree-dump-times "= 0;" 2 "forwprop1" } } */ /* { dg-final { scan-tree-dump-times " = " 1 "forwprop1" } } */
/* { dg-final { scan-tree-dump-times "-" 0 "forwprop1" } } */ /* { dg-final { scan-tree-dump "return 0;" "forwprop1" } } */
/* { dg-final { scan-tree-dump-times "\\+" 1 "forwprop1" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment