https://bugs.llvm.org/show_bug.cgi?id=36316
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
Assignee: unassignedclangb...@nondot.org
Reporter: mafagafogiga...@gmail.com
CC: llvm-bugs@lists.llvm.org
Created attachment 19847
--> https://bugs.llvm.org/attachment.cgi?id=19847&action=edit
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: https://godbolt.org/g/ijuNMb
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs