diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-01-28 23:49:27 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-01-28 23:49:27 +0000 |
commit | bb04f6e28fe49046975297846548dc99e68c82b9 (patch) | |
tree | b2d46997b06cfa0bff89fbb4bd016101bc600393 /llvm/lib/Transforms/Scalar | |
parent | 30a93c1848777202c1bbf8ef756b9c5c1a86e19e (diff) | |
download | bcm5719-llvm-bb04f6e28fe49046975297846548dc99e68c82b9.tar.gz bcm5719-llvm-bb04f6e28fe49046975297846548dc99e68c82b9.zip |
[PlaceSafepoints] Use DEBUG() instead of TraceLSP
DEBUG() is the more idiomatic LLVM style.
llvm-svn: 259121
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r-- | llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp index 7b3b633e7ee..1cadab625b0 100644 --- a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp +++ b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp @@ -95,9 +95,6 @@ static cl::opt<int> CountedLoopTripWidth("spp-counted-loop-trip-width", static cl::opt<bool> SplitBackedge("spp-split-backedge", cl::Hidden, cl::init(false)); -// Print tracing output -static cl::opt<bool> TraceLSP("spp-trace", cl::Hidden, cl::init(false)); - namespace { /// An analysis pass whose purpose is to identify each of the backedges in @@ -320,8 +317,7 @@ bool PlaceBackedgeSafepointsImpl::runOnLoop(Loop *L) { // avoiding the runtime cost of the actual safepoint. if (!AllBackedges) { if (mustBeFiniteCountedLoop(L, SE, Pred)) { - if (TraceLSP) - errs() << "skipping safepoint placement in finite loop\n"; + DEBUG(dbgs() << "skipping safepoint placement in finite loop\n"); FiniteExecution++; continue; } @@ -330,8 +326,7 @@ bool PlaceBackedgeSafepointsImpl::runOnLoop(Loop *L) { // Note: This is only semantically legal since we won't do any further // IPO or inlining before the actual call insertion.. If we hadn't, we // might latter loose this call safepoint. - if (TraceLSP) - errs() << "skipping safepoint placement due to unconditional call\n"; + DEBUG(dbgs() << "skipping safepoint placement due to unconditional call\n"); CallInLoop++; continue; } @@ -347,10 +342,7 @@ bool PlaceBackedgeSafepointsImpl::runOnLoop(Loop *L) { // variables) and branches to the true header TerminatorInst *Term = Pred->getTerminator(); - if (TraceLSP) { - errs() << "[LSP] terminator instruction: "; - Term->dump(); - } + DEBUG(dbgs() << "[LSP] terminator instruction: " << *Term); PollLocations.push_back(Term); } |