[llvm] [RISCV][MC] Pass MCSubtargetInfo down to shouldForceRelocation and evaluateTargetFixup. (PR #73721)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 10:21:48 PST 2023


topperc wrote:

> How does this work w/ LTO? There are quite a few issues related to LTO code generation + target features that crop up fairly frequently([#50591 (comment)](https://github.com/llvm/llvm-project/issues/50591#issuecomment-1830804872)). Notably the need to pass `-mllvm -mattr=+c -mllvm -mattr=+relax` to the linker explicitly w/ LTO on RISC-V. But AFAICT it could equally affect other targets. Do you expect this patch would help with that?

I hope it should help. There may still be other issues. This patch doesn't touch anything that requires `-mllvm -mattr=+c` so if that is required, there is at least another bug somewhere.

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


More information about the llvm-commits mailing list