mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Make the swap code here a bit more obvious what its doing... We're
essentially sorting the pair's arguments. I'd love to actually call sort here, but I'm just not that crazy. ;] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152764 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0e33d9fea2
commit
377c7f049d
@ -435,7 +435,7 @@ void InlineCostAnalyzer::FunctionInfo::countCodeReductionForPointerPair(
|
||||
if (ArgIt == PointerArgs.end())
|
||||
continue;
|
||||
std::pair<unsigned, unsigned> ArgPair(ArgIt->second, ArgIdx);
|
||||
if (ArgIt->second > ArgIdx)
|
||||
if (ArgPair.first > ArgPair.second)
|
||||
std::swap(ArgPair.first, ArgPair.second);
|
||||
|
||||
PointerArgPairWeights[ArgPair]
|
||||
|
Loading…
Reference in New Issue
Block a user