]> git.ipfire.org Git - thirdparty/gcc.git/commit
Generate correctly typed compare in canonicalize_loop_ivs
authorTom de Vries <tdevries@suse.de>
Wed, 20 Jun 2018 14:44:45 +0000 (14:44 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 20 Jun 2018 14:44:45 +0000 (14:44 +0000)
commit60f02f902170249d3a7fe763c10c1aa9375b1150
tree971fa6dd2d0a467da27355696207dbf891ae4fa3
parentd53e8ef490e59839909b536b1cf1d8aaaecfe43f
Generate correctly typed compare in canonicalize_loop_ivs

2018-06-20  Tom de Vries  <tdevries@suse.de>

PR tree-optimization/86097
* tree-ssa-loop-manip.c (canonicalize_loop_ivs): Also convert *nit to
iv type if signedness of iv type is not the same as that of *nit.

* gcc.dg/autopar/pr86097.c: New test.

From-SVN: r261804
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/autopar/pr86097.c [new file with mode: 0644]
gcc/tree-ssa-loop-manip.c