From a0fb8b23e1d1d8f369d5fa6967ba8fa03e97a7c4 Mon Sep 17 00:00:00 2001 From: Siddharth Bhat Date: Fri, 21 Jul 2017 11:21:44 +0000 Subject: [NFC] [PPCGCodeGeneration] Print `verifyModule` failure to debug stream. If verifyModule fails, it is helpful to know why it failed. Add a log to the debug stream that prints the failure. llvm-svn: 308727 --- polly/lib/CodeGen/PPCGCodeGeneration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index b22948320ad..8935aa172f3 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -2084,6 +2084,8 @@ std::string GPUNodeBuilder::finalizeKernelFunction() { if (verifyModule(*GPUModule)) { DEBUG(dbgs() << "verifyModule failed on module:\n"; GPUModule->print(dbgs(), nullptr); dbgs() << "\n";); + DEBUG(dbgs() << "verifyModule Error:\n"; + verifyModule(*GPUModule, &dbgs());); if (FailOnVerifyModuleFailure) llvm_unreachable("VerifyModule failed."); -- cgit v1.2.3