r204662 - in /branches/gcc-4_8-branch/gcc: Chan...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Mon Nov 11 07:55:00 GMT 2013


Author: jakub
Date: Mon Nov 11 07:55:25 2013
New Revision: 204662

URL: http://gcc.gnu.org/viewcvs?rev=204662&root=gcc&view=rev
Log:
	Backported from mainline
	2013-11-05  Jakub Jelinek  <jakub@redhat.com>

	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.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/compile/pr58997.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/loop-iv.c
    branches/gcc-4_8-branch/gcc/loop-unswitch.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list