summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-05-05 16:18:11 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-05-05 16:18:11 +0000
commit2311bdfa7b34ddc7d5c930e045e7d40cd0cb05e5 (patch)
tree59b67ae08c92b7ce050a550c22e038e734a62783 /llvm/lib/CodeGen/MachineCSE.cpp
parent21673c4e7ec08457b53798b9879b7cc9a5909eb8 (diff)
downloadbcm5719-llvm-2311bdfa7b34ddc7d5c930e045e7d40cd0cb05e5.tar.gz
bcm5719-llvm-2311bdfa7b34ddc7d5c930e045e7d40cd0cb05e5.zip
Minor correction to r130877; fixes PR9846 and hopefully the buildbot failures.
llvm-svn: 130925
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCSE.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineCSE.cpp b/llvm/lib/CodeGen/MachineCSE.cpp
index 5d79e96097e..341afd9dbc6 100644
--- a/llvm/lib/CodeGen/MachineCSE.cpp
+++ b/llvm/lib/CodeGen/MachineCSE.cpp
@@ -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())
OpenPOWER on IntegriCloud