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:
a9d6680
)
Avoid swap when a copy suffices.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 31 May 2010 12:50:41 +0000
(12:50 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 31 May 2010 12:50:41 +0000
(12:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105220
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/Inliner.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/Inliner.cpp
b/lib/Transforms/IPO/Inliner.cpp
index b785bb0a9390e58e1e11d027b7fb1bc44faa3eeb..027a220bc7f989c0cd3dbc2b66446a82a75b495d 100644
(file)
--- a/
lib/Transforms/IPO/Inliner.cpp
+++ b/
lib/Transforms/IPO/Inliner.cpp
@@
-468,7
+468,7
@@
bool Inliner::runOnSCC(CallGraphSCC &SCC) {
// move a call site to a function in this SCC before the
// 'FirstCallInSCC' barrier.
if (SCC.isSingular()) {
-
std::swap(CallSites[CSi], CallSites.back()
);
+
CallSites[CSi] = CallSites.back(
);
CallSites.pop_back();
} else {
CallSites.erase(CallSites.begin()+CSi);