[all-commits] [llvm/llvm-project] ec92d7: Reland [X86] Respect code models more when determi...
Arthur Eubanks via All-commits
all-commits at lists.llvm.org
Thu Dec 14 09:50:20 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ec92d74a0ef89b9dd46aee6ec8aca6bfd3c66a54
https://github.com/llvm/llvm-project/commit/ec92d74a0ef89b9dd46aee6ec8aca6bfd3c66a54
Author: Arthur Eubanks <aeubanks at google.com>
Date: 2023-12-14 (Thu, 14 Dec 2023)
Changed paths:
M llvm/include/llvm/Target/TargetMachine.h
M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
M llvm/lib/Target/TargetMachine.cpp
M llvm/lib/Target/X86/X86FastISel.cpp
M llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
M llvm/lib/Target/X86/X86Subtarget.cpp
M llvm/test/CodeGen/X86/code-model-elf.ll
Log Message:
-----------
Reland [X86] Respect code models more when determining if a global reference can fit in 32 bits (#75386)
For non-GlobalValue references, the small and medium code models can use
32 bit constants.
For GlobalValue references, use TargetMachine::isLargeGlobalObject().
Look through aliases for determining if a GlobalValue is small or large.
Even the large code model can reference small objects with 32 bit
constants as long as we're in no-pic mode, or if the reference is offset
from the GOT.
Original commit broke the build...
More information about the All-commits
mailing list