[all-commits] [llvm/llvm-project] 9b6b2a: [X86] Use RIP-relative for non-globals in medium c...

Arthur Eubanks via All-commits all-commits at lists.llvm.org
Thu Sep 21 16:50:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b6b2a0cec53b46e5fc1f9b19dbd5911000f6a37
      https://github.com/llvm/llvm-project/commit/9b6b2a0cec53b46e5fc1f9b19dbd5911000f6a37
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2023-09-21 (Thu, 21 Sep 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86Subtarget.cpp
    M llvm/test/CodeGen/X86/code-model-elf.ll

  Log Message:
  -----------
  [X86] Use RIP-relative for non-globals in medium code model in classifyLocalReference() (#67070)

We only want to treat globals as potentially far away, not other things
like constants in the constant pool.
This matches the object file emission that only puts the large section
flag on globals.

Remove FIXME since the remaining differences are accesses to 0 sized
globals which are intentional.




More information about the All-commits mailing list