Invalidate liveness in Thumb2ITBlockPass.

llvm-svn: 153516
This commit is contained in:
Jakob Stoklund Olesen 2012-03-27 17:06:06 +00:00
parent 835cabe92a
commit 14459cdc49
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineInstrBundle.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/Statistic.h"
using namespace llvm;
@ -258,6 +259,9 @@ bool Thumb2ITBlockPass::runOnMachineFunction(MachineFunction &Fn) {
if (!AFI->isThumbFunction())
return false;
// IT block insertion invalidates accurate register liveness.
Fn.getRegInfo().invalidateLiveness();
bool Modified = false;
for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E; ) {
MachineBasicBlock &MBB = *MFI;