[llvm-commits] [llvm] r130925 - /llvm/trunk/lib/CodeGen/MachineCSE.cpp
Eli Friedman
eli.friedman at gmail.com
Thu May 5 09:18:11 PDT 2011
Author: efriedma
Date: Thu May 5 11:18:11 2011
New Revision: 130925
URL: http://llvm.org/viewvc/llvm-project?rev=130925&view=rev
Log:
Minor correction to r130877; fixes PR9846 and hopefully the buildbot failures.
Modified:
llvm/trunk/lib/CodeGen/MachineCSE.cpp
Modified: llvm/trunk/lib/CodeGen/MachineCSE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineCSE.cpp?rev=130925&r1=130924&r2=130925&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineCSE.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineCSE.cpp Thu May 5 11:18:11 2011
@@ -468,7 +468,8 @@
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())
More information about the llvm-commits
mailing list