Introduce a new array_pod_sort function and switch LSR to use it
authorChris Lattner <sabre@nondot.org>
Mon, 1 Dec 2008 06:49:59 +0000 (06:49 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Dec 2008 06:49:59 +0000 (06:49 +0000)
commit99d0015735f8e2aee1a4b99e39ffdaadc8a1dba8
tree2d06f1f5a424c45f6f5ab95e5a3c92b913a150c7
parent09fb7dadf1f8f2efaae6a803c63fb29d06105df3
Introduce a new array_pod_sort function and switch LSR to use it
instead of std::sort.  This shrinks the release-asserts LSR.o file
by 1100 bytes of code on my system.

We should start using array_pod_sort where possible.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60335 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/STLExtras.h
lib/Transforms/Scalar/LoopStrengthReduce.cpp