mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-10 02:25:47 +00: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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128399 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -247,6 +247,9 @@ public:
|
||||
if (&I == V)
|
||||
V = UndefValue::get(I.getType());
|
||||
|
||||
DEBUG(errs() << "IC: Replacing " << I << "\n"
|
||||
" with " << *V << '\n');
|
||||
|
||||
I.replaceAllUsesWith(V);
|
||||
return &I;
|
||||
}
|
||||
|
Reference in New Issue
Block a user