Bug ID: 36316
           Summary: Missed optimization of code deduplication
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen

Created attachment 19847
C++, followed by the ASM outputs

I've included the minimum source code required and the relevant ASM output for
GCC (trunk) and Clang (trunk).

The GCC output does not issue duplicated code for isNice(), which makes its
version relatively shorter. Clang, on the other hand, (I assume) fails to
identify this optimization opportunity.

For convenience, here is a Godbolt link:

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to