[LVI] Use a SmallDenseMap instead of std::map for ValueCacheEntryTy
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Tue, 18 Aug 2015 16:54:36 +0000 (16:54 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Tue, 18 Aug 2015 16:54:36 +0000 (16:54 +0000)
commit4628dff6430f6583fbf4342a1fbba66c54c8db4b
tree4d5ff4ab1018dcc0ff6d18a9369cd151f7a44af4
parent08c1ad0c381c10b537200470b73e53c82cfde1b5
[LVI] Use a SmallDenseMap instead of std::map for ValueCacheEntryTy

Historically there seems to be some resistance regarding the change to DenseMap
(r147980). However, I couldn't find cases of iterator invalidation for
ValueCacheEntryTy, but only for ValueCache, which I left untouched.

This reduces 20s on an internal testcase. Follow up from r245309.

Differential Revision: http://reviews.llvm.org/D11651

rdar://problem/21320066

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245314 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LazyValueInfo.cpp