From: Eli Friedman Date: Thu, 5 May 2011 16:18:11 +0000 (+0000) Subject: Minor correction to r130877; fixes PR9846 and hopefully the buildbot failures. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5f6bf5d44138a3537822ac057cd7576375c94df1;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/MachineCSE.cpp b/lib/CodeGen/MachineCSE.cpp index 5d79e96097e..341afd9dbc6 100644 --- a/lib/CodeGen/MachineCSE.cpp +++ b/lib/CodeGen/MachineCSE.cpp @@ -468,7 +468,8 @@ bool MachineCSE::ProcessBlock(MachineBasicBlock *MBB) { SmallVector::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())