[llvm] r224125 - [Reassociate] Use dbgs() instead of errs().
Chad Rosier
mcrosier at codeaurora.org
Fri Dec 12 06:44:12 PST 2014
Author: mcrosier
Date: Fri Dec 12 08:44:12 2014
New Revision: 224125
URL: http://llvm.org/viewvc/llvm-project?rev=224125&view=rev
Log:
[Reassociate] Use dbgs() instead of errs().
Modified:
llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp?rev=224125&r1=224124&r2=224125&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp Fri Dec 12 08:44:12 2014
@@ -1512,7 +1512,7 @@ Value *Reassociate::OptimizeAdd(Instruct
++NumFound;
} while (i != Ops.size() && Ops[i].Op == TheOp);
- DEBUG(errs() << "\nFACTORING [" << NumFound << "]: " << *TheOp << '\n');
+ DEBUG(dbgs() << "\nFACTORING [" << NumFound << "]: " << *TheOp << '\n');
++NumFactor;
// Insert a new multiply.
@@ -1650,7 +1650,7 @@ Value *Reassociate::OptimizeAdd(Instruct
// If any factor occurred more than one time, we can pull it out.
if (MaxOcc > 1) {
- DEBUG(errs() << "\nFACTORING [" << MaxOcc << "]: " << *MaxOccVal << '\n');
+ DEBUG(dbgs() << "\nFACTORING [" << MaxOcc << "]: " << *MaxOccVal << '\n');
++NumFactor;
// Create a new instruction that uses the MaxOccVal twice. If we don't do
More information about the llvm-commits
mailing list