This is an archive of the discontinued LLVM Phabricator instance.

Do not store duplicate parents when memoization data is available.
ClosedPublic

Authored by sbenza on Jun 12 2014, 8:31 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

sbenza updated this revision to Diff 10363.Jun 12 2014, 8:31 AM
sbenza retitled this revision from to Do not store duplicate parents when memoization data is available..
sbenza updated this object.
sbenza edited the test plan for this revision. (Show Details)
sbenza added a reviewer: klimek.
sbenza added a subscriber: Unknown Object (MLST).
sbenza updated this revision to Diff 10368.Jun 12 2014, 12:03 PM

Minor style change.

klimek accepted this revision.Jun 13 2014, 12:59 AM
klimek edited edge metadata.

lg

lib/AST/ASTContext.cpp
8183 ↗(On Diff #10368)

Please fix my "bug benign" typo :D

8209–8212 ↗(On Diff #10368)

Any reason not to use std::find?

This revision is now accepted and ready to land.Jun 13 2014, 12:59 AM
sbenza updated this revision to Diff 10386.Jun 13 2014, 6:09 AM
sbenza edited edge metadata.

Use std::find() instead of std::any_of()

sbenza added inline comments.Jun 13 2014, 6:11 AM
lib/AST/ASTContext.cpp
8183 ↗(On Diff #10368)

Done.

8209–8212 ↗(On Diff #10368)

I was afraid that operator== will break for non-memo types, but as long as one of the arguments has memo, then it gives a correct result. Changed.

sbenza closed this revision.Jun 13 2014, 6:39 AM
sbenza updated this revision to Diff 10387.

Closed by commit rL210902 (authored by @sbenza).