mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Move the code for initialing the entry block livein set out of
SelectionDAGISel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c0fb65da04
commit
b13033f61c
@ -248,6 +248,11 @@ MachineRegisterInfo::EmitLiveInCopies(MachineBasicBlock *EntryMBB,
|
||||
(void) Emitted;
|
||||
}
|
||||
}
|
||||
|
||||
// Add function live-ins to entry block live-in set.
|
||||
for (MachineRegisterInfo::livein_iterator I = livein_begin(),
|
||||
E = livein_end(); I != E; ++I)
|
||||
EntryMBB->addLiveIn(I->first);
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
@ -221,11 +221,6 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
|
||||
// emitting the code for the block.
|
||||
RegInfo->EmitLiveInCopies(MF->begin(), TRI, TII);
|
||||
|
||||
// Add function live-ins to entry block live-in set.
|
||||
for (MachineRegisterInfo::livein_iterator I = RegInfo->livein_begin(),
|
||||
E = RegInfo->livein_end(); I != E; ++I)
|
||||
MF->begin()->addLiveIn(I->first);
|
||||
|
||||
#ifndef NDEBUG
|
||||
assert(FuncInfo->CatchInfoFound.size() == FuncInfo->CatchInfoLost.size() &&
|
||||
"Not all catch info was assigned to a landing pad!");
|
||||
|
Loading…
Reference in New Issue
Block a user