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: unassignedclangb...@nondot.org
          Reporter: mik...@digitalcarbide.com
                CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to