Debug intriniscs should be skipped when looking
authorDale Johannesen <dalej@apple.com>
Wed, 11 Mar 2009 21:13:01 +0000 (21:13 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 11 Mar 2009 21:13:01 +0000 (21:13 +0000)
for a dependency, not terminate the search.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66709 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/MemoryDependenceAnalysis.cpp

index 9ce7ca9c9d264cff2ae422f6df09b63c1ed18fea..ed95b90cc9894af3da85e4135476a7541e50ca15 100644 (file)
@@ -123,7 +123,7 @@ getCallSiteDependencyFrom(CallSite CS, bool isReadOnlyCall,
       PointerSize = ~0ULL;
     } else if (isa<CallInst>(Inst) || isa<InvokeInst>(Inst)) {
       // Debug intrinsics don't cause dependences.
-      if (isa<DbgInfoIntrinsic>(Inst)) break;
+      if (isa<DbgInfoIntrinsic>(Inst)) continue;
       CallSite InstCS = CallSite::get(Inst);
       // If these two calls do not interfere, look past it.
       switch (AA->getModRefInfo(CS, InstCS)) {