]> granicus.if.org Git - llvm/commit
[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)
commit2fd72fd59574dea9b5ad4dc4ed61c3eaa268105b
tree5063c9d8e440fae58d3c88382db32d5186d89e90
parentbb15ebf5c743a31bc4043b2ef6d89a9edcf8bdcc
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282606 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolution.h
lib/Analysis/ScalarEvolution.cpp