summaryrefslogtreecommitdiffstats
path: root/polly/lib/Transform/ZoneAlgo.cpp
diff options
context:
space:
mode:
authorNicola Zaghen <nicola.zaghen@imgtec.com>2018-05-15 13:37:17 +0000
committerNicola Zaghen <nicola.zaghen@imgtec.com>2018-05-15 13:37:17 +0000
commit349506a926c78af36cdcac75d44ac7522f168d06 (patch)
treee3d1f236a6bf854d438b9d8a824c7a4d676d0e0e /polly/lib/Transform/ZoneAlgo.cpp
parente7245b429b942946ed3cb8f422b22e3de6d00a3c (diff)
downloadbcm5719-llvm-349506a926c78af36cdcac75d44ac7522f168d06.tar.gz
bcm5719-llvm-349506a926c78af36cdcac75d44ac7522f168d06.zip
[polly] Update uses of DEBUG macro to LLVM_DEBUG.
The DEBUG() macro is very generic so it might clash with other projects. The renaming was done as follows: - git grep -l 'DEBUG' | xargs sed -i 's/\bDEBUG\s\?(/LLVM_DEBUG(/g' - git diff -U0 master | ../clang/tools/clang-format/clang-format-diff.py -i -p1 -style LLVM Differential Revision: https://reviews.llvm.org/D44978 llvm-svn: 332352
Diffstat (limited to 'polly/lib/Transform/ZoneAlgo.cpp')
-rw-r--r--polly/lib/Transform/ZoneAlgo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/polly/lib/Transform/ZoneAlgo.cpp b/polly/lib/Transform/ZoneAlgo.cpp
index 3770953b1a5..2ad40d83d36 100644
--- a/polly/lib/Transform/ZoneAlgo.cpp
+++ b/polly/lib/Transform/ZoneAlgo.cpp
@@ -338,7 +338,8 @@ void ZoneAlgorithm::collectIncompatibleElts(ScopStmt *Stmt,
if (MA->isRead()) {
// Reject load after store to same location.
if (!Stores.is_disjoint(AccRel)) {
- DEBUG(dbgs() << "Load after store of same element in same statement\n");
+ LLVM_DEBUG(
+ dbgs() << "Load after store of same element in same statement\n");
OptimizationRemarkMissed R(PassName, "LoadAfterStore",
MA->getAccessInstruction());
R << "load after store of same element in same statement";
@@ -357,7 +358,7 @@ void ZoneAlgorithm::collectIncompatibleElts(ScopStmt *Stmt,
// In region statements the order is less clear, eg. the load and store
// might be in a boxed loop.
if (Stmt->isRegionStmt() && !Loads.is_disjoint(AccRel)) {
- DEBUG(dbgs() << "WRITE in non-affine subregion not supported\n");
+ LLVM_DEBUG(dbgs() << "WRITE in non-affine subregion not supported\n");
OptimizationRemarkMissed R(PassName, "StoreInSubregion",
MA->getAccessInstruction());
R << "store is in a non-affine subregion";
@@ -368,7 +369,7 @@ void ZoneAlgorithm::collectIncompatibleElts(ScopStmt *Stmt,
// Do not allow more than one store to the same location.
if (!Stores.is_disjoint(AccRel) && !onlySameValueWrites(Stmt)) {
- DEBUG(dbgs() << "WRITE after WRITE to same element\n");
+ LLVM_DEBUG(dbgs() << "WRITE after WRITE to same element\n");
OptimizationRemarkMissed R(PassName, "StoreAfterStore",
MA->getAccessInstruction());
R << "store after store of same element in same statement";
OpenPOWER on IntegriCloud