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 4e9e6a8 commit 42b4bf4Copy full SHA for 42b4bf4
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -1915,7 +1915,7 @@ bool VectorCombine::foldShuffleOfSelects(Instruction &I) {
1915
auto *DstVecTy = dyn_cast<FixedVectorType>(I.getType());
1916
auto *C1VecTy = dyn_cast<FixedVectorType>(C1->getType());
1917
auto *C2VecTy = dyn_cast<FixedVectorType>(C2->getType());
1918
- if (!C1VecTy || !C2VecTy)
+ if (!C1VecTy || !C2VecTy || C1VecTy != C2VecTy)
1919
return false;
1920
1921
// SelectInsts must have the same FMF.
0 commit comments