diff options
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
-rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 4c5c95af6e6..9fc5eeb0f0f 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -410,8 +410,8 @@ inline bool ScopDetection::invalid(DetectionContext &Context, bool Assert, if (PollyTrackFailures) Log.report(RejectReason); - DEBUG(dbgs() << RejectReason->getMessage()); - DEBUG(dbgs() << "\n"); + LLVM_DEBUG(dbgs() << RejectReason->getMessage()); + LLVM_DEBUG(dbgs() << "\n"); } else { assert(!Assert && "Verification of detected scop failed"); } @@ -704,8 +704,8 @@ bool ScopDetection::isValidCallInst(CallInst &CI, return false; if (isDebugCall(&CI)) { - DEBUG(dbgs() << "Allow call to debug function: " - << CalledFunction->getName() << '\n'); + LLVM_DEBUG(dbgs() << "Allow call to debug function: " + << CalledFunction->getName() << '\n'); return true; } @@ -1383,14 +1383,14 @@ Region *ScopDetection::expandRegion(Region &R) { std::unique_ptr<Region> LastValidRegion; auto ExpandedRegion = std::unique_ptr<Region>(R.getExpandedRegion()); - DEBUG(dbgs() << "\tExpanding " << R.getNameStr() << "\n"); + LLVM_DEBUG(dbgs() << "\tExpanding " << R.getNameStr() << "\n"); while (ExpandedRegion) { const auto &It = DetectionContextMap.insert(std::make_pair( getBBPairForRegion(ExpandedRegion.get()), DetectionContext(*ExpandedRegion, AA, false /*verifying*/))); DetectionContext &Context = It.first->second; - DEBUG(dbgs() << "\t\tTrying " << ExpandedRegion->getNameStr() << "\n"); + LLVM_DEBUG(dbgs() << "\t\tTrying " << ExpandedRegion->getNameStr() << "\n"); // Only expand when we did not collect errors. if (!Context.Log.hasErrors()) { @@ -1424,7 +1424,7 @@ Region *ScopDetection::expandRegion(Region &R) { } } - DEBUG({ + LLVM_DEBUG({ if (LastValidRegion) dbgs() << "\tto " << LastValidRegion->getNameStr() << "\n"; else @@ -1630,23 +1630,23 @@ bool ScopDetection::isProfitableRegion(DetectionContext &Context) const { bool ScopDetection::isValidRegion(DetectionContext &Context) const { Region &CurRegion = Context.CurRegion; - DEBUG(dbgs() << "Checking region: " << CurRegion.getNameStr() << "\n\t"); + LLVM_DEBUG(dbgs() << "Checking region: " << CurRegion.getNameStr() << "\n\t"); if (!PollyAllowFullFunction && CurRegion.isTopLevelRegion()) { - DEBUG(dbgs() << "Top level region is invalid\n"); + LLVM_DEBUG(dbgs() << "Top level region is invalid\n"); return false; } DebugLoc DbgLoc; if (CurRegion.getExit() && isa<UnreachableInst>(CurRegion.getExit()->getTerminator())) { - DEBUG(dbgs() << "Unreachable in exit\n"); + LLVM_DEBUG(dbgs() << "Unreachable in exit\n"); return invalid<ReportUnreachableInExit>(Context, /*Assert=*/true, CurRegion.getExit(), DbgLoc); } if (!CurRegion.getEntry()->getName().count(OnlyRegion)) { - DEBUG({ + LLVM_DEBUG({ dbgs() << "Region entry does not match -polly-region-only"; dbgs() << "\n"; }); @@ -1667,7 +1667,7 @@ bool ScopDetection::isValidRegion(DetectionContext &Context) const { return invalid<ReportIrreducibleRegion>(Context, /*Assert=*/true, &CurRegion, DbgLoc); - DEBUG(dbgs() << "OK\n"); + LLVM_DEBUG(dbgs() << "OK\n"); return true; } |