[RS4GC] Remove a redundant linear search, NFCI
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 20 Oct 2015 01:06:31 +0000 (01:06 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 20 Oct 2015 01:06:31 +0000 (01:06 +0000)
commit35072eb786d5f1188973fd3180559b50fde9f274
tree28ae0f15cf179a83d7497cc1699aef6b195a2afa
parent3d31aca99923e138766dad27469fd6d3a6ebf92a
[RS4GC] Remove a redundant linear search, NFCI

Since LiveVariables is uniqued (we just created it from a `DenseSet`),
`FindIndex(LiveVariables, LiveVariables[i])` is always `i`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250786 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp