[llvm-bugs] [Bug 44804] New: Function merging not enabled at -O2/-Os or higher
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 5 12:58:54 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44804
Bug ID: 44804
Summary: Function merging not enabled at -O2/-Os or higher
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: mike.k at digitalcarbide.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
In GCC, `-fipa-icf` is enabled at `-O2` (and higher) and `-Os`.
The equivalent functionality, for functions at least, is `-Xclang
-fmerge-functions`. It is not, however, enabled at any optimization level.
It should be changed to be enabled the same as it is in GCC - at `-O2` or
higher, `-Os`, and `-Oz`.
See: https://godbolt.org/z/2wLv_w for an example of a lack of folding in Clang
as compared to GCC.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200205/01cfe22b/attachment.html>
More information about the llvm-bugs
mailing list