We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d7d94 commit 29712ccCopy full SHA for 29712cc
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -701,9 +701,8 @@ void VPWidenRecipe::execute(VPTransformState &State) {
701
State.setDebugLocFromInst(CI);
702
703
/// Vectorize casts.
704
- Type *DestTy = (State.VF.isScalar())
705
- ? CI->getType()
706
- : VectorType::get(CI->getType(), State.VF);
+ assert(State.VF.isVector() && "not widening");
+ Type *DestTy = VectorType::get(CI->getType(), State.VF);
707
708
for (unsigned Part = 0; Part < State.UF; ++Part) {
709
Value *A = State.get(getOperand(0), Part);
0 commit comments