Page MenuHomePhabricator

[SCEV] Use a SmallPtrSet as a temporary union predicate; NFC
ClosedPublic

Authored by sanjoy on Sep 27 2016, 9:44 PM.

Details

Summary

Instead of creating and destroying SCEVUnionPredicate instances (which
internally creates and destroys a DenseMap), use temporary SmallPtrSet
instances of remember the set of predicates that will get reified into a
SCEVUnionPredicate.

Diff Detail

Repository
rL LLVM

Event Timeline

sanjoy updated this revision to Diff 72760.Sep 27 2016, 9:44 PM
sanjoy retitled this revision from to [SCEV] Use a SmallPtrSet as a temporary union predicate; NFC.
sanjoy updated this object.
sanjoy added reviewers: silviu.baranga, sbaranga.
sanjoy added a subscriber: llvm-commits.
sbaranga edited edge metadata.Sep 28 2016, 2:48 AM

Very nice! LGTM

sbaranga accepted this revision.Sep 28 2016, 2:48 AM
sbaranga edited edge metadata.
This revision is now accepted and ready to land.Sep 28 2016, 2:48 AM
This revision was automatically updated to reflect the committed changes.