projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75f6df2
)
Memdep says that an instruction clobbers itself
author
Dan Gohman
<gohman@apple.com>
Wed, 20 Oct 2010 22:37:41 +0000
(22:37 +0000)
committer
Dan Gohman
<gohman@apple.com>
Wed, 20 Oct 2010 22:37:41 +0000
(22:37 +0000)
when it means there is no specific clobber instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116960
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/MemDepPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/MemDepPrinter.cpp
b/lib/Analysis/MemDepPrinter.cpp
index 841f4b6b4adfd323a2434e2c88d2b155f3daf22e..597daff8db2b825a87b9680d784ab1d207ff2143 100644
(file)
--- a/
lib/Analysis/MemDepPrinter.cpp
+++ b/
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 << "<unspecified>";
+ else
+ DepInst->print(OS);
OS << "\n";
}