[llvm] r301723 - [LoopUnswitch] Make DEBUG output more readable (part 2).
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 28 17:18:26 PDT 2017
Author: davide
Date: Fri Apr 28 19:18:26 2017
New Revision: 301723
URL: http://llvm.org/viewvc/llvm-project?rev=301723&view=rev
Log:
[LoopUnswitch] Make DEBUG output more readable (part 2).
I fixed my miscompile in r301722 and I hope I don't have to take
a look at this code again now that Chandler has a new LoopUnswitch
pass, but maybe this could be of use for somebody else in the
meanwhile.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp?rev=301723&r1=301722&r2=301723&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp Fri Apr 28 19:18:26 2017
@@ -1432,7 +1432,7 @@ void LoopUnswitch::SimplifyCode(std::vec
// Simple DCE.
if (isInstructionTriviallyDead(I)) {
- DEBUG(dbgs() << "Remove dead instruction '" << *I);
+ DEBUG(dbgs() << "Remove dead instruction '" << *I << "\n");
// Add uses to the worklist, which may be dead now.
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i)
More information about the llvm-commits
mailing list