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 ae4f037 commit 16fffdfCopy full SHA for 16fffdf
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -2050,10 +2050,8 @@ bool VectorCombine::foldShuffleOfSelects(Instruction &I) {
2050
(SI0FOp->getFastMathFlags() != SI1FOp->getFastMathFlags())))
2051
return false;
2052
2053
- auto *SrcVecTy = dyn_cast<FixedVectorType>(T1->getType());
2054
- auto *DstVecTy = dyn_cast<FixedVectorType>(I.getType());
2055
- assert(SrcVecTy && DstVecTy &&
2056
- "Expected shuffle/select vector types to be defined");
+ auto *SrcVecTy = cast<FixedVectorType>(T1->getType());
+ auto *DstVecTy = cast<FixedVectorType>(I.getType());
2057
2058
auto SK = TargetTransformInfo::SK_PermuteTwoSrc;
2059
auto SelOp = Instruction::Select;
0 commit comments