projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb769a2
)
[MergeFunc] Use less_first() as the comparator of Schwartzian transform
author
Fangrui Song
<maskray@google.com>
Fri, 19 Apr 2019 05:49:29 +0000
(
05:49
+0000)
committer
Fangrui Song
<maskray@google.com>
Fri, 19 Apr 2019 05:49:29 +0000
(
05:49
+0000)
llvm-svn: 358738
llvm/lib/Transforms/IPO/MergeFunctions.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/IPO/MergeFunctions.cpp
b/llvm/lib/Transforms/IPO/MergeFunctions.cpp
index
d0c1613
..
8a40f04
100644
(file)
--- a/
llvm/lib/Transforms/IPO/MergeFunctions.cpp
+++ b/
llvm/lib/Transforms/IPO/MergeFunctions.cpp
@@
-403,12
+403,7
@@
bool MergeFunctions::runOnModule(Module &M) {
}
}
- std::stable_sort(
- HashedFuncs.begin(), HashedFuncs.end(),
- [](const std::pair<FunctionComparator::FunctionHash, Function *> &a,
- const std::pair<FunctionComparator::FunctionHash, Function *> &b) {
- return a.first < b.first;
- });
+ std::stable_sort(HashedFuncs.begin(), HashedFuncs.end(), less_first());
auto S = HashedFuncs.begin();
for (auto I = HashedFuncs.begin(), IE = HashedFuncs.end(); I != IE; ++I) {