From f61c8e81bd5ef3974873ecb48b514f04cec0930f Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Wed, 11 Mar 2009 21:13:01 +0000 Subject: Debug intriniscs should be skipped when looking for a dependency, not terminate the search. llvm-svn: 66709 --- llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Analysis') diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index 9ce7ca9c9d2..ed95b90cc98 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -123,7 +123,7 @@ getCallSiteDependencyFrom(CallSite CS, bool isReadOnlyCall, PointerSize = ~0ULL; } else if (isa(Inst) || isa(Inst)) { // Debug intrinsics don't cause dependences. - if (isa(Inst)) break; + if (isa(Inst)) continue; CallSite InstCS = CallSite::get(Inst); // If these two calls do not interfere, look past it. switch (AA->getModRefInfo(CS, InstCS)) { -- cgit v1.2.3