mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Add some debug output when -instcombine uses RAUW. This can make debug output for those cases much clearer since without this it only showed that the original instruction was removed, not what it was replaced with.
llvm-svn: 128399
This commit is contained in:
parent
18eaae730c
commit
c458e6512d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user