@@ -2383,7 +2383,7 @@ static Instruction *foldTruncShuffle(ShuffleVectorInst &Shuf,
2383
2383
Type *DestType = Shuf.getType ();
2384
2384
Value *X;
2385
2385
if (!match (Shuf.getOperand (0 ), m_BitCast (m_Value (X))) ||
2386
- !match (Shuf.getOperand (1 ), m_Undef ()) || !DestType->isIntOrIntVectorTy ())
2386
+ !match (Shuf.getOperand (1 ), m_Poison ()) || !DestType->isIntOrIntVectorTy ())
2387
2387
return nullptr ;
2388
2388
2389
2389
// The source type must have the same number of elements as the shuffle,
@@ -2755,17 +2755,17 @@ static Instruction *foldIdentityPaddedShuffles(ShuffleVectorInst &Shuf) {
2755
2755
// BinOp's operands are the result of a first element splat can be simplified to
2756
2756
// splatting the first element of the result of the BinOp
2757
2757
Instruction *InstCombinerImpl::simplifyBinOpSplats (ShuffleVectorInst &SVI) {
2758
- if (!match (SVI.getOperand (1 ), m_Undef ()) ||
2758
+ if (!match (SVI.getOperand (1 ), m_Poison ()) ||
2759
2759
!match (SVI.getShuffleMask (), m_ZeroMask ()) ||
2760
2760
!SVI.getOperand (0 )->hasOneUse ())
2761
2761
return nullptr ;
2762
2762
2763
2763
Value *Op0 = SVI.getOperand (0 );
2764
2764
Value *X, *Y;
2765
- if (!match (Op0, m_BinOp (m_Shuffle (m_Value (X), m_Undef (), m_ZeroMask ()),
2765
+ if (!match (Op0, m_BinOp (m_Shuffle (m_Value (X), m_Poison (), m_ZeroMask ()),
2766
2766
m_Value (Y))) &&
2767
2767
!match (Op0, m_BinOp (m_Value (X),
2768
- m_Shuffle (m_Value (Y), m_Undef (), m_ZeroMask ()))))
2768
+ m_Shuffle (m_Value (Y), m_Poison (), m_ZeroMask ()))))
2769
2769
return nullptr ;
2770
2770
if (X->getType () != Y->getType ())
2771
2771
return nullptr ;
0 commit comments