From 5f6bf5d44138a3537822ac057cd7576375c94df1 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 5 May 2011 16:18:11 +0000 Subject: [PATCH] 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 --- lib/CodeGen/MachineCSE.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) -- 2.34.1