[llvm] [SLP] NFC. Refactor getEntryCost and isReverseOrder usage. (PR #119680)
Han-Kuan Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 19:59:32 PST 2024
================
@@ -11003,9 +11004,8 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
}
InstructionCost CommonCost = 0;
SmallVector<int> Mask;
- bool IsReverseOrder = isReverseOrder(E->ReorderIndices);
- if (!E->ReorderIndices.empty() &&
- (E->State != TreeEntry::StridedVectorize || !IsReverseOrder)) {
+ if (!E->ReorderIndices.empty() && (E->State != TreeEntry::StridedVectorize ||
----------------
HanKuanChen wrote:
Yes.
`IsReverseOrder` is replaced with `isReverseOrder`.
https://github.com/llvm/llvm-project/pull/119680
More information about the llvm-commits
mailing list