aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-01 06:49:59 +0000
committerChris Lattner <sabre@nondot.org>2008-12-01 06:49:59 +0000
commit99d0015735f8e2aee1a4b99e39ffdaadc8a1dba8 (patch)
tree2d06f1f5a424c45f6f5ab95e5a3c92b913a150c7 /lib/Transforms
parent09fb7dadf1f8f2efaae6a803c63fb29d06105df3 (diff)
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
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/LoopStrengthReduce.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 11c56ffebd..78bd50e98a 100644
--- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -243,7 +243,7 @@ void LoopStrengthReduce::DeleteTriviallyDeadInstructions() {
// Sort the deadinsts list so that we can trivially eliminate duplicates as we
// go. The code below never adds a non-dead instruction to the worklist, but
// callers may not be so careful.
- std::sort(DeadInsts.begin(), DeadInsts.end());
+ array_pod_sort(DeadInsts.begin(), DeadInsts.end());
// Drop duplicate instructions and those with uses.
for (unsigned i = 0, e = DeadInsts.size()-1; i < e; ++i) {