[llvm] [SLP] NFC. Refactor getEntryCost and isReverseOrder usage. (PR #119680)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 14:38:12 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 ||
----------------
alexey-bataev wrote:

Is this formatted?

https://github.com/llvm/llvm-project/pull/119680


More information about the llvm-commits mailing list