From cd4c977b8b998a078f5416c8d71bc5b552a6df2d Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Fri, 21 Jul 2017 15:35:53 +0000 Subject: [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 --- polly/lib/CodeGen/CodeGeneration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'polly/lib/CodeGen/CodeGeneration.cpp') 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"; -- cgit v1.2.3