mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-24 07:35:04 +00:00
Fix an over-pessimization about GlobalVariable addresses in X86FastISel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56802 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
652203f3f3
commit
7962e856d1
@ -462,7 +462,7 @@ bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM, bool isCall) {
|
||||
}
|
||||
|
||||
// If all else fails, try to materialize the value in a register.
|
||||
if (!AM.GV && getTargetMachine()->symbolicAddressesAreRIPRel()) {
|
||||
if (!AM.GV || !getTargetMachine()->symbolicAddressesAreRIPRel()) {
|
||||
if (AM.Base.Reg == 0) {
|
||||
AM.Base.Reg = getRegForValue(V);
|
||||
return AM.Base.Reg != 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user