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

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 5 06:13:57 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 \
----------------
paschalis-mpeis wrote:

Yes of course, I meant that can keep only the flag that keeps nops, eg:

```
# RUN: llvm-bolt %t.exe -o %t.bolt --lite=0 --keep-nops \
# RUN:    | FileCheck %s --check-prefix=CHECK-LOGS
```

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


More information about the llvm-commits mailing list