This is an archive of the discontinued LLVM Phabricator instance.

[MemorySSA] Expose the verify as a debug option.
ClosedPublic

Authored by asbirlea on Aug 14 2018, 5:15 PM.

Details

Summary

Expose VerifyMemorySSA as a debug option. If set, passes will call the MSSA->verifyMemorySSA() after calling into the updater's APIs when MemorySSA should be valid.

Diff Detail

Repository
rL LLVM

Event Timeline

asbirlea created this revision.Aug 14 2018, 5:15 PM

LGTM with a few comments. Thanks!

lib/Analysis/MemorySSA.cpp
80 ↗(On Diff #160726)

Do we want to enable this by default if EXPENSIVE_CHECKS is on? Looks like the other verify* are auto-enabled (at least to some extent) in that case, and the comment above them says so.

(I'm happy in either case. I just want reasoning to point to if the answer is "we shouldn't, because ...." )

83 ↗(On Diff #160726)

s/verify/verification/

This revision is now accepted and ready to land.Aug 14 2018, 7:30 PM
asbirlea updated this revision to Diff 160843.Aug 15 2018, 10:32 AM

Address comments.

Thank you for the review!

asbirlea marked 2 inline comments as done.Aug 15 2018, 10:34 AM
This revision was automatically updated to reflect the committed changes.