diff options
author | Davide Italiano <davide@freebsd.org> | 2017-04-28 21:30:50 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2017-04-28 21:30:50 +0000 |
commit | e27cb877542d8784a304b77c65d1098038e6bea5 (patch) | |
tree | 85bd622ca8225f1a61eb8a3dc11a386107e74052 /llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | |
parent | a7a945a13b4326025bb584230050f797fbc0570f (diff) | |
download | bcm5719-llvm-e27cb877542d8784a304b77c65d1098038e6bea5.tar.gz bcm5719-llvm-e27cb877542d8784a304b77c65d1098038e6bea5.zip |
[LoopUnswitch] Make DEBUG output more readable.
While debugging a miscompile I realized loopunswitch doesn't
put newlines when printing the instruction being replacement.
Ending up with a single line with many instruction replaced isn't
the best for readability and/or mental sanity.
llvm-svn: 301692
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopUnswitch.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp index 8fa806a7e8b..0b56b4e7ab1 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -1262,7 +1262,7 @@ static void RemoveFromWorklist(Instruction *I, static void ReplaceUsesOfWith(Instruction *I, Value *V, std::vector<Instruction*> &Worklist, Loop *L, LPPassManager *LPM) { - DEBUG(dbgs() << "Replace with '" << *V << "': " << *I); + DEBUG(dbgs() << "Replace with '" << *V << "': " << *I << "\n"); // Add uses to the worklist, which may be dead now. for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) |