[PATCH] D39630: [PredicateInfo] Stable sort ValueDFS to remove non-deterministic ordering
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 4 20:28:04 PDT 2017
mgrang updated this revision to Diff 121612.
Repository:
rL LLVM
https://reviews.llvm.org/D39630
Files:
lib/Transforms/Utils/PredicateInfo.cpp
Index: lib/Transforms/Utils/PredicateInfo.cpp
===================================================================
--- lib/Transforms/Utils/PredicateInfo.cpp
+++ lib/Transforms/Utils/PredicateInfo.cpp
@@ -611,7 +611,7 @@
}
convertUsesToDFSOrdered(Op, OrderedUses);
- std::sort(OrderedUses.begin(), OrderedUses.end(), Compare);
+ std::stable_sort(OrderedUses.begin(), OrderedUses.end(), Compare);
SmallVector<ValueDFS, 8> RenameStack;
// For each use, sorted into dfs order, push values and replaces uses with
// top of stack, which will represent the reaching def.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39630.121612.patch
Type: text/x-patch
Size: 597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171105/5a4ae8e1/attachment.bin>
More information about the llvm-commits
mailing list