[SCEV] Use a SmallPtrSet as a temporary union predicate; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 28 Sep 2016 17:14:58 +0000 (17:14 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 28 Sep 2016 17:14:58 +0000 (17:14 +0000)
commitf0022125e099c400dee4f8a0299c5b4579193a53
tree2205430fbc734f15edd20dbdf3de151378fa3b4b
parent386236509e9206e0e1f6273bfa1d2ae685ba88be
[SCEV] Use a SmallPtrSet as a temporary union predicate; NFC

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.

Reviewers: silviu.baranga, sbaranga

Subscribers: sanjoy, mcrosier, llvm-commits, mzolotukhin

Differential Revision: https://reviews.llvm.org/D25000

llvm-svn: 282606
llvm/include/llvm/Analysis/ScalarEvolution.h
llvm/lib/Analysis/ScalarEvolution.cpp