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:
ef1f5cc
)
Add some debug output when -instcombine uses RAUW. This can make debug output for...
author
Frits van Bommel
<fvbommel@gmail.com>
Sun, 27 Mar 2011 23:32:31 +0000
(23:32 +0000)
committer
Frits van Bommel
<fvbommel@gmail.com>
Sun, 27 Mar 2011 23:32:31 +0000
(23:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128399
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/InstCombine/InstCombine.h
patch
|
blob
|
history
diff --git
a/lib/Transforms/InstCombine/InstCombine.h
b/lib/Transforms/InstCombine/InstCombine.h
index 0da962a5f40876965102d1b76076e0c3621e3e30..d5de53aa926d092df6a44d44a4a161a11884f95c 100644
(file)
--- a/
lib/Transforms/InstCombine/InstCombine.h
+++ b/
lib/Transforms/InstCombine/InstCombine.h
@@
-246,7
+246,10
@@
public:
// segment of unreachable code, so just clobber the instruction.
if (&I == V)
V = UndefValue::get(I.getType());
-
+
+ DEBUG(errs() << "IC: Replacing " << I << "\n"
+ " with " << *V << '\n');
+
I.replaceAllUsesWith(V);
return &I;
}