[polly] r308727 - [NFC] [PPCGCodeGeneration] Print `verifyModule` failure to debug stream.
Siddharth Bhat via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 21 04:21:44 PDT 2017
Author: bollu
Date: Fri Jul 21 04:21:44 2017
New Revision: 308727
URL: http://llvm.org/viewvc/llvm-project?rev=308727&view=rev
Log:
[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.
Modified:
polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp
Modified: polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp?rev=308727&r1=308726&r2=308727&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp Fri Jul 21 04:21:44 2017
@@ -2084,6 +2084,8 @@ std::string GPUNodeBuilder::finalizeKern
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.");
More information about the llvm-commits
mailing list