[llvm-commits] [llvm] r116960 - /llvm/trunk/lib/Analysis/MemDepPrinter.cpp

Dan Gohman gohman at apple.com
Wed Oct 20 15:37:41 PDT 2010


Author: djg
Date: Wed Oct 20 17:37:41 2010
New Revision: 116960

URL: http://llvm.org/viewvc/llvm-project?rev=116960&view=rev
Log:
Memdep says that an instruction clobbers itself
when it means there is no specific clobber instruction.

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

Modified: llvm/trunk/lib/Analysis/MemDepPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemDepPrinter.cpp?rev=116960&r1=116959&r2=116960&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MemDepPrinter.cpp (original)
+++ llvm/trunk/lib/Analysis/MemDepPrinter.cpp Wed Oct 20 17:37:41 2010
@@ -150,7 +150,10 @@
         WriteAsOperand(OS, DepBB, /*PrintType=*/false, M);
       }
       OS << " from: ";
-      DepInst->print(OS);
+      if (DepInst == Inst)
+        OS << "<unspecified>";
+      else
+        DepInst->print(OS);
       OS << "\n";
     }
 





More information about the llvm-commits mailing list