[PATCH] D86661: Use properlyDominates in RDFLiveness when sorting on dominance.
Alina Sbirlea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 15:17:17 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0b3422630434: Use properlyDominates in RDFLiveness when sorting on dominance. (authored by asbirlea).
Herald added a subscriber: mgrang.
Changed prior to commit:
https://reviews.llvm.org/D86661?vs=288109&id=288122#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86661/new/
https://reviews.llvm.org/D86661
Files:
llvm/lib/CodeGen/RDFLiveness.cpp
Index: llvm/lib/CodeGen/RDFLiveness.cpp
===================================================================
--- llvm/lib/CodeGen/RDFLiveness.cpp
+++ llvm/lib/CodeGen/RDFLiveness.cpp
@@ -230,13 +230,12 @@
TmpBB.push_back(Bucket.first);
if (Bucket.second.size() > 2)
GetOrder(*Bucket.first);
- std::sort(Bucket.second.begin(), Bucket.second.end(), Precedes);
+ llvm::sort(Bucket.second.begin(), Bucket.second.end(), Precedes);
}
// Sort the blocks with respect to dominance.
- std::sort(TmpBB.begin(), TmpBB.end(), [this](auto A, auto B) {
- return MDT.dominates(A, B);
- });
+ llvm::sort(TmpBB.begin(), TmpBB.end(),
+ [this](auto A, auto B) { return MDT.properlyDominates(A, B); });
std::vector<NodeId> TmpInst;
for (auto I = TmpBB.rbegin(), E = TmpBB.rend(); I != E; ++I) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86661.288122.patch
Type: text/x-patch
Size: 831 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200826/156e72f1/attachment.bin>
More information about the llvm-commits
mailing list