This is an archive of the discontinued LLVM Phabricator instance.

Rewrite domination verifier to handle local domination as well.
ClosedPublic

Authored by dberlin on Aug 4 2016, 5:40 PM.

Details

Summary

Rewrite domination verifier to handle local domination as well.
This catches a bug Geoff Berry noticed.

Diff Detail

Repository
rL LLVM

Event Timeline

dberlin updated this revision to Diff 66889.Aug 4 2016, 5:40 PM
dberlin retitled this revision from to Rewrite domination verifier to handle local domination as well..
dberlin updated this object.
dberlin added a reviewer: george.burgess.iv.
dberlin added a subscriber: llvm-commits.
george.burgess.iv edited edge metadata.

LGTM with comments, thanks.

include/llvm/Transforms/Utils/MemorySSA.h
594 ↗(On Diff #66889)

Do we see this being used outside of verification? If not, make this private, please.

lib/Transforms/Utils/MemorySSA.cpp
1872 ↗(On Diff #66889)

Looks like this definition is provided if NDEBUG is defined. Please braces around the assert. :)

1879 ↗(On Diff #66889)

Same as above

This revision is now accepted and ready to land.Aug 5 2016, 12:04 PM
This revision was automatically updated to reflect the committed changes.