[llvm] [BOLT] Add support for safe-icf (PR #116275)

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 03:45:25 PST 2024


================
@@ -0,0 +1,19 @@
+## Check that BOLT handles correctly folding functions with --icf-safe that can be referenced.
+# The compare is generated by the ICP path with instrumentation profiling.
+
+# REQUIRES: system-linux
+# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %p/Inputs/mainSafeICFICPTest.s    -o %t1.o
+# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %p/Inputs/helperSafeICFICPTest.s  -o %t2.o
----------------
aaupov wrote:

I don't see why you need to keep the two sources separate. Please embed the assembly into tests so it's easier to review in GitHub.

https://github.com/llvm/llvm-project/pull/116275


More information about the llvm-commits mailing list