mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-30 06:40:53 +00:00
Fix an over-pessimization about GlobalVariable addresses in X86FastISel.
llvm-svn: 56802
This commit is contained in:
parent
7536edca09
commit
c6184c4473
@ -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…
Reference in New Issue
Block a user