[llvm] [VectorCombine] Add support for zext/sext/trunc to shuffleToIdentity (PR #92696)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 02:51:04 PDT 2024


================
@@ -1753,8 +1756,7 @@ static Value *generateNewInstTree(ArrayRef<InstLane> Item, FixedVectorType *Ty,
 // do so.
 bool VectorCombine::foldShuffleToIdentity(Instruction &I) {
   auto *Ty = dyn_cast<FixedVectorType>(I.getType());
-  if (!Ty || !isa<Instruction>(I.getOperand(0)) ||
-      !isa<Instruction>(I.getOperand(1)))
----------------
RKSimon wrote:

Isn't this an unrelated change?

https://github.com/llvm/llvm-project/pull/92696


More information about the llvm-commits mailing list