[all-commits] [llvm/llvm-project] 86eaf6: [X86] Refine X86DAGToDAGISel::isSExtAbsoluteSymbol...
Arthur Eubanks via All-commits
all-commits at lists.llvm.org
Fri Jan 19 14:11:30 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 86eaf6083b2cd27b8811f4791ad2eb8dacbb0e5f
https://github.com/llvm/llvm-project/commit/86eaf6083b2cd27b8811f4791ad2eb8dacbb0e5f
Author: Arthur Eubanks <aeubanks at google.com>
Date: 2024-01-19 (Fri, 19 Jan 2024)
Changed paths:
M llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
A llvm/test/CodeGen/X86/relocimm-code-model.ll
R llvm/test/CodeGen/X86/relocimm-small-model.ll
Log Message:
-----------
[X86] Refine X86DAGToDAGISel::isSExtAbsoluteSymbolRef() (#76191)
We just need to check if the global is large or not.
In the kernel code model, globals are in the negative 2GB of the address
space, so globals can be a sign extended 32-bit immediate.
In other code models, small globals are in the low 2GB of the address
space, so sign extending them is equivalent to zero extending them.
More information about the All-commits
mailing list