mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Initialize LiveRegs once in BranchFolder::mergeCommonTails
llvm-svn: 335365
This commit is contained in:
parent
dab1220353
commit
9d1f43196a
@ -921,11 +921,12 @@ void BranchFolder::mergeCommonTails(unsigned commonTailIndex) {
|
||||
if (UpdateLiveIns) {
|
||||
LivePhysRegs NewLiveIns(*TRI);
|
||||
computeLiveIns(NewLiveIns, *MBB);
|
||||
LiveRegs.init(*TRI);
|
||||
|
||||
// The flag merging may lead to some register uses no longer using the
|
||||
// <undef> flag, add IMPLICIT_DEFs in the predecessors as necessary.
|
||||
for (MachineBasicBlock *Pred : MBB->predecessors()) {
|
||||
LiveRegs.init(*TRI);
|
||||
LiveRegs.clear();
|
||||
LiveRegs.addLiveOuts(*Pred);
|
||||
MachineBasicBlock::iterator InsertBefore = Pred->getFirstTerminator();
|
||||
for (unsigned Reg : NewLiveIns) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user