[llvm] [AArch64,ELF] Restrict MOVZ/MOVK to non-PIC large code model (PR #70178)

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 31 09:44:05 PDT 2023


https://github.com/smithp35 commented:

IIUC this isn't necessarily needed for Clang now that https://github.com/llvm/llvm-project/pull/70262 has landed, but there may be other front-ends/JITs that could in theory try and use position independence and the large code-model.

Can you update the comment to mention https://github.com/llvm/llvm-project/pull/70262 . Will also need to change "but Clang doesn't reject -fpic -mcmodel=large as GCC does"

Code changes look reasonable to me.

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


More information about the llvm-commits mailing list