Minor correction to r130877; fixes PR9846 and hopefully the buildbot failures.

llvm-svn: 130925
This commit is contained in:
Eli Friedman 2011-05-05 16:18:11 +00:00
parent 8785489968
commit 9d2cd1cac4

View File

@ -468,7 +468,8 @@ bool MachineCSE::ProcessBlock(MachineBasicBlock *MBB) {
SmallVector<unsigned,8>::iterator PI = DirectPhysRefs.begin(),
PE = DirectPhysRefs.end();
for (; PI != PE; ++PI)
MBB->addLiveIn(*PI);
if (!MBB->isLiveIn(*PI))
MBB->addLiveIn(*PI);
}
++NumCSEs;
if (!PhysRefs.empty())