This is an archive of the discontinued LLVM Phabricator instance.

[Polly] [PPCGCodeGeneration] Error out if verifyModule fails on GPUModule.
ClosedPublic

Authored by bollu on Jun 26 2017, 5:07 AM.

Details

Summary
  • We used to silently return an empty kernel string on verifyModule failure
  • Change this behaviour to an llvm_unreachable.

Event Timeline

bollu created this revision.Jun 26 2017, 5:07 AM
bollu retitled this revision from [Polly] [PPCGCodeGeneration] Error out if verifyModule fails on GPUModule. - We used to silently return an empty kernel string on verifyModule failure. - Change this behaviour to an `llvm_unreachable`. to [Polly] [PPCGCodeGeneration] Error out if verifyModule fails on GPUModule..Jun 26 2017, 5:13 AM
bollu edited the summary of this revision. (Show Details)
bollu updated this revision to Diff 103938.Jun 26 2017, 6:31 AM
  • Make VerifyModule failure an llvm_unreachable state
  • add command line option to enable bailing out if verifyModule fails
grosser edited edge metadata.Jun 26 2017, 6:33 AM

LGTM, but please leave the test case unchanged. It still covers the default behavior.

lib/CodeGen/PPCGCodeGeneration.cpp
1517

Drop debug stuff.

grosser accepted this revision.Jun 26 2017, 6:33 AM
This revision is now accepted and ready to land.Jun 26 2017, 6:33 AM
bollu closed this revision.Jun 26 2017, 7:57 AM

Closed by r306290