[llvm] [bolt][aarch64] simplify rodata/literal load for X86 & AArch64 (PR #165723)

YongKang Zhu via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 1 09:05:00 PST 2025


================
@@ -1260,6 +1286,9 @@ bool SimplifyRODataLoads::simplifyRODataLoads(BinaryFunction &BF) {
 }
 
 Error SimplifyRODataLoads::runOnFunctions(BinaryContext &BC) {
+  if (BC.isRISCV())
----------------
yozhu wrote:

Could we move the check of `BC.isRISCV()` to the file `bolt/lib/Rewrite/BinaryPassManager.cpp` where the pass `SimplifyRODataLoads` is registered, i.e., we won't even run this pass for RISCV?

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


More information about the llvm-commits mailing list