re PR tree-optimization/58143 (wrong code at -O3)
commitf4bed77be41f90e53463f8bf7a71ff503402a963
authorRichard Biener <rguenther@suse.de>
Thu, 17 Oct 2013 09:59:47 +0000 (17 09:59 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 17 Oct 2013 09:59:47 +0000 (17 09:59 +0000)
tree8d7974135748186f9ae1e8c1ad50e589d9721b56
parent568a31f2f6e231543a32e388c12ee8da9df23c53
re PR tree-optimization/58143 (wrong code at -O3)

2013-10-17  Richard Biener  <rguenther@suse.de>

PR tree-optimization/58143
* tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
New function.
(rewrite_to_defined_overflow): Likewise.
(move_computations_dom_walker::before_dom): Rewrite stmts
with undefined signed overflow that are not always executed
into unsigned arithmetic.

* gcc.dg/torture/pr58143-1.c: New testcase.
* gcc.dg/torture/pr58143-2.c: Likewise.
* gcc.dg/torture/pr58143-3.c: Likewise.

From-SVN: r203745
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr58143-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr58143-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr58143-3.c [new file with mode: 0644]
gcc/tree-ssa-loop-im.c