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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130925 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eli Friedman 2011-05-05 16:18:11 +00:00
parent f262e16161
commit 5f6bf5d441

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())