]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR rtl-optimization/58997 (ICE on valid code at -O3 on x86_64-linux-gnu (affecting...
authorJakub Jelinek <jakub@redhat.com>
Tue, 5 Nov 2013 19:37:51 +0000 (20:37 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 5 Nov 2013 19:37:51 +0000 (20:37 +0100)
commit50fae5a679990a4bba7dc30de21e6d4132d778fb
treee79a1de24f6746538c44940eded0a9ed35e3a3b1
parent2a0603f1899262a11e21aba32da9a94d6f1129c3
re PR rtl-optimization/58997 (ICE on valid code at -O3 on x86_64-linux-gnu (affecting gcc trunk and 4.8.2))

PR rtl-optimization/58997
* loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
get_iv_value to be in iv->mode rather than iv->extend_mode.
(iv_extend): Likewise.  Otherwise, if iv->extend != extend,
use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
* loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
mode.

* gcc.c-torture/compile/pr58997.c: New test.

From-SVN: r204413
gcc/ChangeLog
gcc/loop-iv.c
gcc/loop-unswitch.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr58997.c [new file with mode: 0644]