From: Chris Lattner Date: Mon, 15 Dec 2008 04:58:29 +0000 (+0000) Subject: if we have a phi translation failure of the start block, X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3af23f8aba9ac28fe5a8646f57c2c307a35c1e4d;p=oota-llvm.git if we have a phi translation failure of the start block, return *just* a clobber of the start block, not other random stuff as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61026 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 1dfa1fac084..a5bfeee7bc1 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -494,6 +494,7 @@ getNonLocalPointerDependency(Value *Pointer, bool isLoad, BasicBlock *FromBB, if (!getNonLocalPointerDepFromBB(Pointer, PointeeSize, isLoad, FromBB, Result, Visited, true)) return; + Result.clear(); Result.push_back(std::make_pair(FromBB, MemDepResult::getClobber(FromBB->begin()))); }