This is the mail archive of the gcc-bugs@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]

[Bug middle-end/39297] [4.4 Regression] gcc.dg/tree-ssa/loop-31.c



------- Comment #4 from rguenther at suse dot de  2009-02-25 14:48 -------
Subject: Re:  [4.4 Regression]
 gcc.dg/tree-ssa/loop-31.c

On Wed, 25 Feb 2009, hjl dot tools at gmail dot com wrote:

> ------- Comment #2 from hjl dot tools at gmail dot com  2009-02-25 14:37 -------
> (In reply to comment #1)
> > Sooo - what is the content of the .optimized dump?
> > 
> 
> ;; Function foo (foo)
> 
> Analyzing Edge Insertions.
> foo (int len, int v)
> {
>   long unsigned int D.1255;
>   long unsigned int ivtmp.14;
> 
> <bb 2>:
>   if (len > 0)
>     goto <bb 3>;
>   else
>     goto <bb 5>;
> 
> <bb 3>:
>   ivtmp.14 = (long unsigned int) &a[0];
>   D.1255 = ((long unsigned int) &a + 2) + (long unsigned int) ((unsigned int)
> le
> n + 4294967295) * 2;

This likely used to be folded to &a[len], but the addressing-mode
is still what it is supposed to be.  Can you attach the dump with
the patch reverted as well?

> <bb 4>:
>   MEM[index: ivtmp.14] = (short int) (short int) v;
>   ivtmp.14 = ivtmp.14 + 2;
>   if (ivtmp.14 != D.1255)
>     goto <bb 4>;
>   else
>     goto <bb 5>;
> 
> <bb 5>:
>   return a[0];
> 
> }
> 
> 
> 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39297


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