[llvm] [SLP][REVEC] Remove assert because canConvertToMinOrMaxIntrinsic can support vector type. (PR #114946)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 5 06:54:52 PST 2024
================
@@ -10777,7 +10777,6 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
// If the selects are the only uses of the compares, they will be
// dead and we can adjust the cost by removing their cost.
if (VI && SelectOnly) {
- assert(!Ty->isVectorTy() && "Expected only for scalar type.");
----------------
alexey-bataev wrote:
Shall it be something like
```
assert((SLPReVec || !Ty->isVectorTy()) && "Expected only for scalar type.");
```
?
https://github.com/llvm/llvm-project/pull/114946
More information about the llvm-commits
mailing list