diff options
| author | Tobias Grosser <tobias@grosser.es> | 2014-10-22 23:16:28 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2014-10-22 23:16:28 +0000 |
| commit | 01aea5809f19901fc30fe40ff03b662c1bb90141 (patch) | |
| tree | 3b3626599b136f7c679e755fb97200a30eda99bd /polly/lib/CodeGen/IslAst.cpp | |
| parent | 51c8b3e9dbcdac883ea20d559a4714d2336227ab (diff) | |
| download | bcm5719-llvm-01aea5809f19901fc30fe40ff03b662c1bb90141.tar.gz bcm5719-llvm-01aea5809f19901fc30fe40ff03b662c1bb90141.zip | |
Use stringFromIslObj instead of isl_..._dump to print to dbgs()
This makes sure we consistently use dbgs() when printing debug output.
Previously, the code just mixed calls to isl_*_dump() with printing to dbgs()
and was relying for both methods to interact in predictable ways (same output
stream, no unexpected reordering of outputs).
llvm-svn: 220443
Diffstat (limited to 'polly/lib/CodeGen/IslAst.cpp')
| -rw-r--r-- | polly/lib/CodeGen/IslAst.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/IslAst.cpp b/polly/lib/CodeGen/IslAst.cpp index 9c5070ecd6e..80455428edd 100644 --- a/polly/lib/CodeGen/IslAst.cpp +++ b/polly/lib/CodeGen/IslAst.cpp @@ -25,6 +25,7 @@ #include "polly/LinkAllPasses.h" #include "polly/Options.h" #include "polly/ScopInfo.h" +#include "polly/Support/GICHelper.h" #include "llvm/Support/Debug.h" #include "isl/union_map.h" @@ -491,7 +492,10 @@ void IslAstInfo::printScop(raw_ostream &OS) const { OS << ":: isl ast :: " << F->getName() << " :: " << S.getRegion().getNameStr() << "\n"; - DEBUG(dbgs() << S.getContextStr() << "\n"; isl_union_map_dump(Schedule)); + DEBUG({ + dbgs() << S.getContextStr() << "\n"; + dbgs() << stringFromIslObj(Schedule); + }); OS << "\nif (" << RtCStr << ")\n\n"; OS << AstStr << "\n"; OS << "else\n"; |

