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]

Re: [PATCH] Fold more aggressively for trip counts


On 1/4/07, Robert Kennedy <jimbob@google.com> wrote:
> Well, a testcase looks like
>
> int foo(int a)
> {
>   return a * 1000 > 0;
> }
>
> and then check the gimple tree dump.

I tried that. Somehow (I'm not sure how) it gets folded anyway without
my change. Whatever is doing it in that context does not apply during
the loop optimizations.

I see the condition survive until asm even with -O2 on i686.


Richard.


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