[llvm] r175472 - Use array_pod_sort instead of std::sort.
Jakub Staszak
kubastaszak at gmail.com
Mon Feb 18 15:18:22 PST 2013
Author: kuba
Date: Mon Feb 18 17:18:22 2013
New Revision: 175472
URL: http://llvm.org/viewvc/llvm-project?rev=175472&view=rev
Log:
Use array_pod_sort instead of std::sort.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=175472&r1=175471&r2=175472&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Mon Feb 18 17:18:22 2013
@@ -17657,7 +17657,7 @@ bool X86TargetLowering::ExpandInlineAsm(
AsmPieces.clear();
const std::string &ConstraintsStr = IA->getConstraintString();
SplitString(StringRef(ConstraintsStr).substr(5), AsmPieces, ",");
- std::sort(AsmPieces.begin(), AsmPieces.end());
+ array_pod_sort(AsmPieces.begin(), AsmPieces.end());
if (AsmPieces.size() == 4 &&
AsmPieces[0] == "~{cc}" &&
AsmPieces[1] == "~{dirflag}" &&
@@ -17675,7 +17675,7 @@ bool X86TargetLowering::ExpandInlineAsm(
AsmPieces.clear();
const std::string &ConstraintsStr = IA->getConstraintString();
SplitString(StringRef(ConstraintsStr).substr(5), AsmPieces, ",");
- std::sort(AsmPieces.begin(), AsmPieces.end());
+ array_pod_sort(AsmPieces.begin(), AsmPieces.end());
if (AsmPieces.size() == 4 &&
AsmPieces[0] == "~{cc}" &&
AsmPieces[1] == "~{dirflag}" &&
More information about the llvm-commits
mailing list