[llvm] [X86] Don't use rip-relative lea to get a function address in medium static mode (PR #75656)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 15 15:14:40 PST 2023


================
@@ -829,7 +829,7 @@ define dso_local ptr @lea_static_fn() #0 {
 ;
 ; MEDIUM-STATIC-LABEL: lea_static_fn:
 ; MEDIUM-STATIC:       # %bb.0:
-; MEDIUM-STATIC-NEXT:    leaq static_fn(%rip), %rax
+; MEDIUM-STATIC-NEXT:    movl $static_fn, %eax
----------------
aeubanks wrote:

I'm getting around to all of these :)

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


More information about the llvm-commits mailing list