[llvm] [SLP][REVEC] Fix the mismatch between the result of getAltInstrMask and the VecTy argument of TargetTransformInfo::isLegalAltInstr. (PR #134795)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 03:51:55 PDT 2025
================
@@ -6667,11 +6666,12 @@ void BoUpSLP::reorderTopToBottom() {
// to take into account their order when looking for the most used order.
if (TE->hasState() && TE->isAltShuffle() &&
TE->State != TreeEntry::SplitVectorize) {
- VectorType *VecTy =
- getWidenedType(TE->Scalars[0]->getType(), TE->Scalars.size());
+ Type *ScalarTy = TE->Scalars[0]->getType();
+ VectorType *VecTy = getWidenedType(ScalarTy, TE->Scalars.size());
----------------
alexey-bataev wrote:
Better not to hide ScalarTy, use another name for the var
https://github.com/llvm/llvm-project/pull/134795
More information about the llvm-commits
mailing list