mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Avoid swap when a copy suffices.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a9d6680cb1
commit
c29df3cac7
@ -468,7 +468,7 @@ bool Inliner::runOnSCC(CallGraphSCC &SCC) {
|
|||||||
// move a call site to a function in this SCC before the
|
// move a call site to a function in this SCC before the
|
||||||
// 'FirstCallInSCC' barrier.
|
// 'FirstCallInSCC' barrier.
|
||||||
if (SCC.isSingular()) {
|
if (SCC.isSingular()) {
|
||||||
std::swap(CallSites[CSi], CallSites.back());
|
CallSites[CSi] = CallSites.back();
|
||||||
CallSites.pop_back();
|
CallSites.pop_back();
|
||||||
} else {
|
} else {
|
||||||
CallSites.erase(CallSites.begin()+CSi);
|
CallSites.erase(CallSites.begin()+CSi);
|
||||||
|
Loading…
Reference in New Issue
Block a user