This is an archive of the discontinued LLVM Phabricator instance.

InferAddressSpaces: Avoid looking up deleted values
ClosedPublic

Authored by arsenm on Apr 26 2017, 12:42 PM.

Details

Reviewers
jlebar
Summary

While looking at pure addressing expressions, it's possible
for the value to appear later in Postorder.

I haven't been able to come up with a testcase where this
exhibits an actual issue, but if you insert a dump before
the value map lookup, a few testcases crash.

Diff Detail

Event Timeline

arsenm created this revision.Apr 26 2017, 12:42 PM
jlebar edited reviewers, added: chandlerc; removed: jlebar.Apr 26 2017, 5:27 PM
jlebar edited the summary of this revision. (Show Details)Apr 28 2017, 12:34 PM
jlebar accepted this revision.Apr 28 2017, 12:41 PM
jlebar edited reviewers, added: jlebar; removed: chandlerc.
jlebar added inline comments.
lib/Transforms/Scalar/InferAddressSpaces.cpp
818

SmallVector?

This revision is now accepted and ready to land.Apr 28 2017, 12:41 PM
arsenm closed this revision.Apr 28 2017, 3:31 PM
arsenm marked an inline comment as done.

r301705