]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR rtl-optimization/58997
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Nov 2013 19:37:51 +0000 (19:37 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Nov 2013 19:37:51 +0000 (19:37 +0000)
commit28573ae7cd13538cd4491e16b805da10afc08d94
treee79a1de24f6746538c44940eded0a9ed35e3a3b1
parent46a19abf72e20d1334b54a936eab013be3be3a15
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204413 138bc75d-0d04-0410-961f-82ee72b054a4
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]