[PATCH] D44875: [XCore] Change std::sort to llvm::sort in response to r327219
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 26 11:14:10 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL328564: [XCore] Change std::sort to llvm::sort in response to r327219 (authored by mgrang, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D44875?vs=139726&id=139821#toc
Repository:
rL LLVM
https://reviews.llvm.org/D44875
Files:
llvm/trunk/lib/Target/XCore/XCoreFrameLowering.cpp
llvm/trunk/lib/Target/XCore/XCoreLowerThreadLocal.cpp
Index: llvm/trunk/lib/Target/XCore/XCoreLowerThreadLocal.cpp
===================================================================
--- llvm/trunk/lib/Target/XCore/XCoreLowerThreadLocal.cpp
+++ llvm/trunk/lib/Target/XCore/XCoreLowerThreadLocal.cpp
@@ -129,7 +129,7 @@
static bool replaceConstantExprOp(ConstantExpr *CE, Pass *P) {
do {
SmallVector<WeakTrackingVH, 8> WUsers(CE->user_begin(), CE->user_end());
- std::sort(WUsers.begin(), WUsers.end());
+ llvm::sort(WUsers.begin(), WUsers.end());
WUsers.erase(std::unique(WUsers.begin(), WUsers.end()), WUsers.end());
while (!WUsers.empty())
if (WeakTrackingVH WU = WUsers.pop_back_val()) {
Index: llvm/trunk/lib/Target/XCore/XCoreFrameLowering.cpp
===================================================================
--- llvm/trunk/lib/Target/XCore/XCoreFrameLowering.cpp
+++ llvm/trunk/lib/Target/XCore/XCoreFrameLowering.cpp
@@ -151,7 +151,7 @@
Offset,
FramePtr));
}
- std::sort(SpillList.begin(), SpillList.end(), CompareSSIOffset);
+ llvm::sort(SpillList.begin(), SpillList.end(), CompareSSIOffset);
}
/// Creates an ordered list of EH info register 'spills'.
@@ -170,7 +170,7 @@
SpillList.push_back(
StackSlotInfo(EHSlot[0], MFI.getObjectOffset(EHSlot[1]),
TL->getExceptionSelectorRegister(PersonalityFn)));
- std::sort(SpillList.begin(), SpillList.end(), CompareSSIOffset);
+ llvm::sort(SpillList.begin(), SpillList.end(), CompareSSIOffset);
}
static MachineMemOperand *getFrameIndexMMO(MachineBasicBlock &MBB,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44875.139821.patch
Type: text/x-patch
Size: 1619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180326/10d583fd/attachment.bin>
More information about the llvm-commits
mailing list