[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)
commit9893fe218ccb9a3ae9531e01befc1e8fbb7b8320
tree27ae345900b3221858b037e7961609e4dda01416
parentae180b95b0a291bdfa93bd1d53b6bba9fefcc772
[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

llvm-svn: 329329
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
llvm/lib/Target/ARM/ARMFrameLowering.cpp
llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp