diff options
author | Siddharth Bhat <siddu.druid@gmail.com> | 2017-07-21 11:21:44 +0000 |
---|---|---|
committer | Siddharth Bhat <siddu.druid@gmail.com> | 2017-07-21 11:21:44 +0000 |
commit | a0fb8b23e1d1d8f369d5fa6967ba8fa03e97a7c4 (patch) | |
tree | 9645c719882dffa241b0b5d7d068e423c67f7970 | |
parent | 16300e12656e3090b036301ac4ecac08b732ffc3 (diff) | |
download | bcm5719-llvm-a0fb8b23e1d1d8f369d5fa6967ba8fa03e97a7c4.tar.gz bcm5719-llvm-a0fb8b23e1d1d8f369d5fa6967ba8fa03e97a7c4.zip |
[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
-rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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."); |