[llvm-commits] [llvm] r66709 - /llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp

Dale Johannesen dalej at apple.com
Wed Mar 11 14:13:01 PDT 2009


Author: johannes
Date: Wed Mar 11 16:13:01 2009
New Revision: 66709

URL: http://llvm.org/viewvc/llvm-project?rev=66709&view=rev
Log:
Debug intriniscs should be skipped when looking
for a dependency, not terminate the search.


Modified:
    llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp

Modified: llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp?rev=66709&r1=66708&r2=66709&view=diff

==============================================================================
--- llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp Wed Mar 11 16:13:01 2009
@@ -123,7 +123,7 @@
       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)) {





More information about the llvm-commits mailing list