[llvm-branch-commits] [llvm] [RISCV] Track Linker Relaxable through Assembly Relaxation (#152602) (PR #153670)
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Aug 14 20:30:48 PDT 2025
================
@@ -361,6 +361,10 @@ static void attemptToFoldSymbolOffsetDifference(const MCAssembler *Asm,
if (BBeforeRelax && AAfterRelax)
return;
}
+ const auto *RF = dyn_cast<MCRelaxableFragment>(F);
+ if (RF && RF->isLinkerRelaxable()) {
+ return;
----------------
MaskRay wrote:
remove braces around single-line simple body
https://github.com/llvm/llvm-project/pull/153670
More information about the llvm-branch-commits
mailing list