mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
Do everything up to generating code to try to get a register for
a variable. The previous code would break the debug info changing code invariant. This will regress debug info for arguments where we elide the alloca created. Fixes rdar://11066468 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153074 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c415af225d
commit
8c5293c955
@ -590,7 +590,12 @@ bool FastISel::SelectCall(const User *I) {
|
||||
Reg = TRI.getFrameRegister(*FuncInfo.MF);
|
||||
}
|
||||
if (!Reg)
|
||||
Reg = getRegForValue(Address);
|
||||
Reg = lookUpRegForValue(Address);
|
||||
|
||||
if (!Reg && isa<Instruction>(Address) &&
|
||||
(!isa<AllocaInst>(Address) ||
|
||||
!FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(Address))))
|
||||
Reg = FuncInfo.InitializeRegForValue(Address);
|
||||
|
||||
if (Reg)
|
||||
BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
|
||||
|
Loading…
Reference in New Issue
Block a user