[llvm] r302367 - Use array_pod_sort instead of std::sort
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Sat May 6 22:29:34 PDT 2017
Author: sanjoy
Date: Sun May 7 00:29:34 2017
New Revision: 302367
URL: http://llvm.org/viewvc/llvm-project?rev=302367&view=rev
Log:
Use array_pod_sort instead of std::sort
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=302367&r1=302366&r2=302367&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Sun May 7 00:29:34 2017
@@ -9642,7 +9642,7 @@ void ScalarEvolution::findArrayDimension
});
// Remove duplicates.
- std::sort(Terms.begin(), Terms.end());
+ array_pod_sort(Terms.begin(), Terms.end());
Terms.erase(std::unique(Terms.begin(), Terms.end()), Terms.end());
// Put larger terms first.
More information about the llvm-commits
mailing list