From 656e6295725a0f79e270c122b9014d3f6ec361bb Mon Sep 17 00:00:00 2001 From: Siddharth Bhat Date: Fri, 18 Aug 2017 13:16:58 +0000 Subject: [PATCH] [Polly] [PPCGCodeGeneration] Print current Scop and loop depth in PPCGCodeGen. [NFC] Differential Revision: https://reviews.llvm.org/D36871 llvm-svn: 311158 --- polly/lib/CodeGen/PPCGCodeGeneration.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index 95af04d1b972..bc70c478e65d 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -3434,6 +3434,9 @@ public: DL = &S->getRegion().getEntry()->getModule()->getDataLayout(); RI = &getAnalysis().getRegionInfo(); + DEBUG(dbgs() << "PPCGCodeGen running on : " << getUniqueScopName(S) + << " | loop depth: " << S->getMaxLoopDepth() << "\n"); + // We currently do not support functions other than intrinsics inside // kernels, as code generation will need to offload function calls to the // kernel. This may lead to a kernel trying to call a function on the host.