summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/CodeGeneration.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2017-07-21 15:35:53 +0000
committerMichael Kruse <llvm@meinersbur.de>2017-07-21 15:35:53 +0000
commitcd4c977b8b998a078f5416c8d71bc5b552a6df2d (patch)
tree466a9c28feeb4951e6dc6017322e352905fc2209 /polly/lib/CodeGen/CodeGeneration.cpp
parentb2a9a2321345980b23c393ede409231abdaebfd8 (diff)
downloadbcm5719-llvm-cd4c977b8b998a078f5416c8d71bc5b552a6df2d.tar.gz
bcm5719-llvm-cd4c977b8b998a078f5416c8d71bc5b552a6df2d.zip
[ScopInfo] Print instructions in dump().
Print a statement's instruction on dump() regardless of -polly-print-instructions. dump() is supposed to be used in the debugger only and never in regression tests. While debugging, get all the information we have and we are not bound to break anything. For non-dump purposes of print, forward the setting of -polly-print-instructions as parameters. Some calls to print() had to be changed because the PollyPrintInstructions setting is only available in ScopInfo.cpp. In ScheduleOptimizer.cpp, dump() was used in regression tests. That's not what dump() is for. The print parameter "PrintInstructions" will also be useful for an explicit print SCoP pass in a future patch. llvm-svn: 308746
Diffstat (limited to 'polly/lib/CodeGen/CodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGen/CodeGeneration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp
index 5e845f1ae33..51b90860c58 100644
--- a/polly/lib/CodeGen/CodeGeneration.cpp
+++ b/polly/lib/CodeGen/CodeGeneration.cpp
@@ -63,7 +63,7 @@ static void verifyGeneratedFunction(Scop &S, Function &F, IslAstInfo &AI) {
DEBUG({
errs() << "== ISL Codegen created an invalid function ==\n\n== The "
"SCoP ==\n";
- S.print(errs());
+ errs() << S;
errs() << "\n== The isl AST ==\n";
AI.print(errs());
errs() << "\n== The invalid function ==\n";
OpenPOWER on IntegriCloud