[llvm] [VectorCombine] Add intrinsics handling to shuffleToIdentity (PR #91000)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 09:12:43 PDT 2024
================
@@ -1729,7 +1729,9 @@ bool VectorCombine::foldShuffleToIdentity(Instruction &I) {
return false;
// Look for an identity value.
- if (Item[0].second == 0 && Item[0].first->getType() == Ty &&
+ if (Item[0].second == 0 &&
+ cast<FixedVectorType>(Item[0].first->getType())->getNumElements() ==
----------------
davemgreen wrote:
My understanding is that we should always remain as Vectors, and nothing will become scalable considering we are looking at shuffles and lanewise instructions.
https://github.com/llvm/llvm-project/pull/91000
More information about the llvm-commits
mailing list