This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/64183] [5.0 Regression] Complete unroll doesn't happen for a while-loop
- From: "enkovich.gnu at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 04 Dec 2014 12:56:08 +0000
- Subject: [Bug tree-optimization/64183] [5.0 Regression] Complete unroll doesn't happen for a while-loop
- Auto-submitted: auto-generated
- References: <bug-64183-4 at http dot gcc dot gnu dot org/bugzilla/>
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.