mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-24 22:40:36 +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. ;] llvm-svn: 152764
This commit is contained in:
parent
8b3b2be7c0
commit
a9f0dc35d3
@ -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…
x
Reference in New Issue
Block a user