diff options
| author | Fangrui Song <maskray@google.com> | 2019-04-23 14:51:27 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-04-23 14:51:27 +0000 |
| commit | efd94c56badf696ed7193f4a83c7a59f7dfbfc6e (patch) | |
| tree | 63f7a8a57c367cf6ba845a80eda9177b62c516be /llvm/lib/CodeGen/IfConversion.cpp | |
| parent | 99cf58339fceadee43ba3fdbf962a083cd5af6c4 (diff) | |
| download | bcm5719-llvm-efd94c56badf696ed7193f4a83c7a59f7dfbfc6e.tar.gz bcm5719-llvm-efd94c56badf696ed7193f4a83c7a59f7dfbfc6e.zip | |
Use llvm::stable_sort
While touching the code, simplify if feasible.
llvm-svn: 358996
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/IfConversion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp index f1ab6815eb9..b17a253fe23 100644 --- a/llvm/lib/CodeGen/IfConversion.cpp +++ b/llvm/lib/CodeGen/IfConversion.cpp @@ -1316,7 +1316,7 @@ void IfConverter::AnalyzeBlocks( AnalyzeBlock(MBB, Tokens); // Sort to favor more complex ifcvt scheme. - std::stable_sort(Tokens.begin(), Tokens.end(), IfcvtTokenCmp); + llvm::stable_sort(Tokens, IfcvtTokenCmp); } /// Returns true either if ToMBB is the next block after MBB or that all the |

