We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fe4631 commit 93d41d8Copy full SHA for 93d41d8
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4393,10 +4393,7 @@ void LoopVectorizationPlanner::emitInvalidCostRemarks(
4393
sort(InvalidCosts, [&Numbering](RecipeVFPair &A, RecipeVFPair &B) {
4394
if (Numbering[A.first] != Numbering[B.first])
4395
return Numbering[A.first] < Numbering[B.first];
4396
- const auto &LHS = A.second;
4397
- const auto &RHS = B.second;
4398
- return std::make_tuple(LHS.isScalable(), LHS.getKnownMinValue()) <
4399
- std::make_tuple(RHS.isScalable(), RHS.getKnownMinValue());
+ return ElementCount::isKnownLT(A.second, B.second);
4400
});
4401
4402
// For a list of ordered recipe-VF pairs:
0 commit comments