[llvm] [bolt] Simplify rodata/literal load for X86_64 & AArch64 (PR #179474)

Alexey Moksyakov via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 5 06:02:54 PST 2026


================
@@ -0,0 +1,76 @@
+// this test checks a load literal instructions changed to movk
+
+# REQUIRES: system-linux
+
+# RUN: %clang %cflags %s -Wa,--defsym,CIBIGFUNC=1 -Wl,-q -o %t.exe
+# RUN: llvm-bolt %t.exe -o %t.bolt --lite=0 \
+# RUN:    --keep-nops --eliminate-unreachable=false \
----------------
yavtuk wrote:

yes, we need only for test, I use the nop instruction instead of real code, that why bolt remove the one

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


More information about the llvm-commits mailing list