Skip to content

Commit fd8fb71

Browse files
committed
[VPlan] Handle scalar casts and blend in isUniformAfterVectorization.
Currently should be NFC, but will be used by #117506.
1 parent 06cb7b1 commit fd8fb71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanUtils.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ inline bool isUniformAfterVectorization(const VPValue *VPV) {
4545
return true;
4646
if (auto *Rep = dyn_cast<VPReplicateRecipe>(VPV))
4747
return Rep->isUniform();
48-
if (isa<VPWidenGEPRecipe, VPDerivedIVRecipe>(VPV))
48+
if (isa<VPWidenGEPRecipe, VPDerivedIVRecipe, VPScalarCastRecipe,
49+
VPBlendRecipe>(VPV))
4950
return all_of(VPV->getDefiningRecipe()->operands(),
5051
isUniformAfterVectorization);
5152
if (auto *VPI = dyn_cast<VPInstruction>(VPV))

0 commit comments

Comments
 (0)