Assertion `(VF.isScalar() || Def->isLiveIn() || hasVectorValue(Def, Part) || (hasScalarValue(Def, VPIteration(Part, 0)) && Data.PerPartScalars[Def][Part].size() == 1)) && "Trying to access a single scalar per part but has multiple scalars " "per part."' failed. #98660
To reproduce run opt opt with -passes loop-vectorize with the following test:
Reproducer: https://godbolt.org/z/Ghz3147nj
Stack dump: