]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/60766 (Wrong optimization with -O2)
authorRichard Biener <rguenther@suse.de>
Mon, 7 Apr 2014 14:03:55 +0000 (14:03 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 7 Apr 2014 14:03:55 +0000 (14:03 +0000)
commitd6adff07f12460e7c6de668c40d0fafabe737051
tree839f5648f4c5fbe2a97503797ffa6be8596a1707
parent9d7aea5fbc096600902e28e3203d67379f301f2b
re PR tree-optimization/60766 (Wrong optimization with -O2)

2014-04-07  Richard Biener  <rguenther@suse.de>

PR tree-optimization/60766
* tree-ssa-loop-ivopts.c (cand_value_at): Compute in an
unsigned type.
(may_eliminate_iv): Convert cand_value_at result to desired
type.

* gcc.dg/torture/pr60766.c: New testcase.

From-SVN: r209190
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr60766.c [new file with mode: 0644]
gcc/tree-ssa-loop-ivopts.c