[PATCH] D87772: [SLP] sort candidates to increase chance of optimal compare reduction
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 10:42:50 PDT 2020
ABataev added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:6860
+ // Step 2: Sort the values so the most common predicates come first.
+ sort(ReducedVals, [&PredCountMap](Value *A, Value *B) {
+ CmpInst::Predicate PredA, PredB;
----------------
`stable_sort`?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87772/new/
https://reviews.llvm.org/D87772
More information about the llvm-commits
mailing list