Use array_pod_sort instead of std::sort

llvm-svn: 302367
This commit is contained in:
Sanjoy Das 2017-05-07 05:29:34 +00:00
parent 6477b7762b
commit 40415eeb59
1 changed files with 1 additions and 1 deletions

View File

@ -9642,7 +9642,7 @@ void ScalarEvolution::findArrayDimensions(SmallVectorImpl<const SCEV *> &Terms,
}); });
// Remove duplicates. // 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()); Terms.erase(std::unique(Terms.begin(), Terms.end()), Terms.end());
// Put larger terms first. // Put larger terms first.