projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61c7744
)
zap two more std::sorts.
author
Chris Lattner
<sabre@nondot.org>
Mon, 13 Dec 2010 03:24:30 +0000
(
03:24
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 13 Dec 2010 03:24:30 +0000
(
03:24
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121672
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index ef07b9e62d19ead9ebf7dfe1131ed10fa9e9f527..1e9b2e581a20914cdd75938a5ef5c0359b80943c 100644
(file)
--- a/
lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/
lib/Transforms/Utils/SimplifyCFG.cpp
@@
-469,8
+469,8
@@
ValuesOverlap(std::vector<std::pair<ConstantInt*, BasicBlock*> > &C1,
}
// Otherwise, just sort both lists and compare element by element.
-
std::
sort(V1->begin(), V1->end());
-
std::
sort(V2->begin(), V2->end());
+
array_pod_
sort(V1->begin(), V1->end());
+
array_pod_
sort(V2->begin(), V2->end());
unsigned i1 = 0, i2 = 0, e1 = V1->size(), e2 = V2->size();
while (i1 != e1 && i2 != e2) {
if ((*V1)[i1].first == (*V2)[i2].first)