Cleanup after r241809 - remove uncessary call to std::sort
authorSilviu Baranga <silviu.baranga@arm.com>
Mon, 13 Jul 2015 14:48:24 +0000 (14:48 +0000)
committerSilviu Baranga <silviu.baranga@arm.com>
Mon, 13 Jul 2015 14:48:24 +0000 (14:48 +0000)
commit5b501101920a147588413ce648e817958bd074d8
tree21142372649783cb70e2b079d0fa3cd92c994c40
parent46db875af8568e547ea6bc4953d2c957a02021c2
Cleanup after r241809 - remove uncessary call to std::sort

Summary:
The iteration order within a member of DepCands is deterministic
and therefore we don't have to sort the accesses within a member.
We also don't have to copy the indices of the pointers into a
vector, since we can iterate over the members of the class.

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242033 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LoopAccessAnalysis.cpp
test/Analysis/LoopAccessAnalysis/number-of-memchecks.ll
test/Analysis/LoopAccessAnalysis/unsafe-and-rt-checks.ll