On Tue, Dec 23, 2014 at 2:25 PM, Andi Kleen wrote:
>
> Please file a bug with a test case. No need to worry about the phase
> too much initially, just fill in a reasonable component.
>
Thanks - filed as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64396
-matt
Matt Godbolt writes:
>
> I'll happily file a bug if necessary but I'm not clear in what phase
> the optimization opportunity has been missed.
Please file a bug with a test case. No need to worry about the phase
too much initially, just fill in a reasonable component.
-Andi
Hi all,
While digging into some GCC-generated code, I noticed a missed
opportunity in GCC that Clang and ICC seem to take advantage of. All
versions of GCC (up to 4.9.0) seem to have the same trouble. The
following source (for x86_64) shows up the problem:
-
#include
#define add_carry32(sum