OSDN Git Service

[ARM] Change std::sort to llvm::sort in response to r327219
authorMandeep Singh Grang <mgrang@codeaurora.org>
Thu, 5 Apr 2018 18:31:50 +0000 (18:31 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Thu, 5 Apr 2018 18:31:50 +0000 (18:31 +0000)
commit205cff101830ef0cb2510ec3cce5e04759257acc
tree16b81108139cf59d6fe8221ccc1626d13a716a07
parentb3ec9a184242598de2ac3c7998e27d7f61c40a82
[ARM] Change std::sort to llvm::sort in response to r327219

Summary:
r327219 added wrappers to std::sort which randomly shuffle the container before sorting.
This will help in uncovering non-determinism caused due to undefined sorting
order of objects having the same key.

To make use of that infrastructure we need to invoke llvm::sort instead of std::sort.

Note: This patch is one of a series of patches to replace *all* std::sort to llvm::sort.
Refer the comments section in D44363 for a list of all the required patches.

Reviewers: t.p.northover, RKSimon, MatzeB, bkramer

Reviewed By: bkramer

Subscribers: javed.absar, llvm-commits, kristof.beyls

Differential Revision: https://reviews.llvm.org/D44855

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329329 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMFrameLowering.cpp
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp