diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-05-05 16:18:11 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-05-05 16:18:11 +0000 |
commit | 5f6bf5d44138a3537822ac057cd7576375c94df1 (patch) | |
tree | ebcb50e20d353596eb24eea7800d4d70691a461e /lib | |
parent | f262e161612eb44b7bb3dd2008950be3e77b57dd (diff) | |
download | external_llvm-5f6bf5d44138a3537822ac057cd7576375c94df1.zip external_llvm-5f6bf5d44138a3537822ac057cd7576375c94df1.tar.gz external_llvm-5f6bf5d44138a3537822ac057cd7576375c94df1.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/MachineCSE.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineCSE.cpp b/lib/CodeGen/MachineCSE.cpp index 5d79e96..341afd9 100644 --- a/lib/CodeGen/MachineCSE.cpp +++ b/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()) |