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 tree-optimization/64183] [5.0 Regression] Complete unroll doesn't happen for a while-loop


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64183

--- Comment #2 from Ilya Enkovich <enkovich.gnu at gmail dot com> ---
(In reply to Richard Biener from comment #1)
> It works correctly for
> 
> int bits;
> 
> void
> test ()
> {
>   while (bits < (unsigned int)25)
>     bits += 8;
> }

Right.  But shift operator in the attached testcase somehow breaks it after
r218142 adds a conversion to unsigned type for a second shift operand.


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