mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Fix a FastISel GlobalVariable CSE bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56376 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fee2d6937c
commit
7e8ef60e3c
@ -379,8 +379,10 @@ bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM, bool isCall) {
|
||||
if (Subtarget->GVRequiresExtraLoad(GV, TM, isCall)) {
|
||||
// Check to see if we've already materialized this
|
||||
// value in a register in this block.
|
||||
if (unsigned Reg = LocalValueMap[V])
|
||||
return Reg;
|
||||
if (unsigned Reg = LocalValueMap[V]) {
|
||||
AM.Base.Reg = Reg;
|
||||
return true;
|
||||
}
|
||||
// Issue load from stub if necessary.
|
||||
unsigned Opc = 0;
|
||||
const TargetRegisterClass *RC = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user