diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-03 19:58:30 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-03 19:58:30 +0000 |
commit | b2f034b85e001fd79617f2124560509583118c13 (patch) | |
tree | 9fc514eac26b2618a66f7c9c19a858f6f8c4bc62 /llvm/lib/CodeGen | |
parent | 23d72e8465f73c7fda4be0018092f0f7e8a21eea (diff) | |
download | bcm5719-llvm-b2f034b85e001fd79617f2124560509583118c13.tar.gz bcm5719-llvm-b2f034b85e001fd79617f2124560509583118c13.zip |
[C++11] Use std::tie to simplify compare operators.
No functionality change.
llvm-svn: 202751
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocGreedy.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index b8307c63b2f..b9cc2fec8dc 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -190,9 +190,8 @@ class RAGreedy : public MachineFunctionPass, void setBrokenHints(unsigned NHints) { BrokenHints = NHints; } bool operator<(const EvictionCost &O) const { - if (BrokenHints != O.BrokenHints) - return BrokenHints < O.BrokenHints; - return MaxWeight < O.MaxWeight; + return std::tie(BrokenHints, MaxWeight) < + std::tie(O.BrokenHints, O.MaxWeight); } }; |