aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-06-25 11:18:40 -0700
committerKazu Hirata <kazu@google.com>2024-06-25 11:18:40 -0700
commitfef144cebb378f550ef098d370316554d647f625 (patch)
treef888d588eae23861c51da6cfc55bf624ec35923e /llvm/lib/Target/PowerPC
parentb9353f7f3ec88ecc5c4cdfc109665c89599b7f2f (diff)
downloadllvm-fef144cebb378f550ef098d370316554d647f625.zip
llvm-fef144cebb378f550ef098d370316554d647f625.tar.gz
llvm-fef144cebb378f550ef098d370316554d647f625.tar.bz2
Revert "[llvm] Use llvm::sort (NFC) (#96434)"
This reverts commit 05d167fc201b4f2e96108be0d682f6800a70c23d. Reverting the patch fixes the following under EXPENSIVE_CHECKS: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir LLVM :: CodeGen/AMDGPU/sched-group-barrier-pre-RA.mir LLVM :: CodeGen/PowerPC/aix-xcoff-used-with-stringpool.ll LLVM :: CodeGen/PowerPC/merge-string-used-by-metadata.mir LLVM :: CodeGen/PowerPC/mergeable-string-pool-large.ll LLVM :: CodeGen/PowerPC/mergeable-string-pool-pass-only.mir LLVM :: CodeGen/PowerPC/mergeable-string-pool.ll
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp b/llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp
index af028de..309938a 100644
--- a/llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp
+++ b/llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp
@@ -244,7 +244,7 @@ bool PPCMergeStringPool::mergeModuleStringPool(Module &M) {
return false;
// Sort the global constants to make access more efficient.
- llvm::sort(MergeableStrings, CompareConstants);
+ std::sort(MergeableStrings.begin(), MergeableStrings.end(), CompareConstants);
SmallVector<Constant *> ConstantsInStruct;
for (GlobalVariable *GV : MergeableStrings)