Unverified Commit 86eaf608 authored by Arthur Eubanks's avatar Arthur Eubanks Committed by GitHub
Browse files

[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.
parent cd05ade1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment