Stack clash: update live-ins

This fixes http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-debian/builds/7150
This commit is contained in:
serge-sans-paille 2020-05-25 15:56:48 +02:00
parent 5d6c5b463c
commit 356bf5ea5d
1 changed files with 4 additions and 1 deletions

View File

@ -705,7 +705,6 @@ void X86FrameLowering::emitStackProbeInlineGenericLoop(
.setMIFlag(MachineInstr::FrameSetup);
testMBB->addSuccessor(testMBB);
testMBB->addSuccessor(tailMBB);
testMBB->addLiveIn(FinalStackPtr);
// BB management
tailMBB->splice(tailMBB->end(), &MBB, MBBI, MBB.end());
@ -719,6 +718,10 @@ void X86FrameLowering::emitStackProbeInlineGenericLoop(
.addReg(FinalStackPtr)
.setMIFlag(MachineInstr::FrameSetup);
}
// Update Live In information
recomputeLiveIns(*testMBB);
recomputeLiveIns(*tailMBB);
}
void X86FrameLowering::emitStackProbeInlineWindowsCoreCLR64(