From 1b85604130ce4a4e4630b82270160a8cb2efbc93 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 20 Oct 2010 22:37:41 +0000 Subject: Memdep says that an instruction clobbers itself when it means there is no specific clobber instruction. llvm-svn: 116960 --- llvm/lib/Analysis/MemDepPrinter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/MemDepPrinter.cpp') diff --git a/llvm/lib/Analysis/MemDepPrinter.cpp b/llvm/lib/Analysis/MemDepPrinter.cpp index 841f4b6b4ad..597daff8db2 100644 --- a/llvm/lib/Analysis/MemDepPrinter.cpp +++ b/llvm/lib/Analysis/MemDepPrinter.cpp @@ -150,7 +150,10 @@ void MemDepPrinter::print(raw_ostream &OS, const Module *M) const { WriteAsOperand(OS, DepBB, /*PrintType=*/false, M); } OS << " from: "; - DepInst->print(OS); + if (DepInst == Inst) + OS << ""; + else + DepInst->print(OS); OS << "\n"; } -- cgit v1.2.3