This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Backport fix to 4.1 branch


This is a regression still present on the 4.1 branch.

Bootstrapped/regtested on i586-suse-linux, applied on the 4.1 branch.


2007-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>

	Backport from mainline:
	2006-12-11  Zdenek Dvorak  <dvorakz@suse.cz>

	PR rtl-optimization/30113
	* loop-iv.c (implies_p): Require the mode of the operands to be
	scalar.


-- 
Eric Botcazou
Index: loop-iv.c
===================================================================
--- loop-iv.c	(revision 128322)
+++ loop-iv.c	(working copy)
@@ -1497,7 +1497,7 @@ implies_p (rtx a, rtx b)
 	    mode = VOIDmode;
 	}
 
-      if (mode != VOIDmode
+      if (SCALAR_INT_MODE_P (mode)
 	  && rtx_equal_p (op1, opb1)
 	  && simplify_gen_binary (MINUS, mode, opb0, op0) == const1_rtx)
 	return true;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]