Skip to content

Commit

Permalink
[AIE2P] Remove assert from matchShuffleToVSel
Browse files Browse the repository at this point in the history
  • Loading branch information
katerynamuts committed Jan 21, 2025
1 parent 7108f7f commit 133f2a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/AIE/AIECombinerHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1796,8 +1796,8 @@ bool llvm::matchShuffleToVSel(

const unsigned NumDstElems = DstTy.getNumElements();
const unsigned NumSrcElems = Src1Ty.getNumElements();
assert(NumDstElems == NumSrcElems &&
"Expected same number of elements in dst and src vector types");
if (NumDstElems != NumSrcElems)
return false;

// Check that the shuffle mask can be converted into VSel mask:
// 1. The shuffle mask doesn't contain indices that correspond to the same
Expand Down

0 comments on commit 133f2a3

Please sign in to comment.