Lines Matching refs:SVI
4705 static bool isBroadcastShuffle(ShuffleVectorInst *SVI) { in isBroadcastShuffle() argument
4706 SmallVector<int, 16> Mask(SVI->getShuffleMask()); in isBroadcastShuffle()
4721 bool CodeGenPrepare::optimizeShuffleVectorInst(ShuffleVectorInst *SVI) { in optimizeShuffleVectorInst() argument
4722 BasicBlock *DefBB = SVI->getParent(); in optimizeShuffleVectorInst()
4725 if (!TLI || !TLI->isVectorShiftByScalarCheap(SVI->getType())) in optimizeShuffleVectorInst()
4730 if (!isBroadcastShuffle(SVI)) in optimizeShuffleVectorInst()
4737 for (User *U : SVI->users()) { in optimizeShuffleVectorInst()
4755 new ShuffleVectorInst(SVI->getOperand(0), SVI->getOperand(1), in optimizeShuffleVectorInst()
4756 SVI->getOperand(2), "", &*InsertPt); in optimizeShuffleVectorInst()
4759 UI->replaceUsesOfWith(SVI, InsertedShuffle); in optimizeShuffleVectorInst()
4764 if (SVI->use_empty()) { in optimizeShuffleVectorInst()
4765 SVI->eraseFromParent(); in optimizeShuffleVectorInst()
5286 if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(I)) in optimizeInst() local
5287 return optimizeShuffleVectorInst(SVI); in optimizeInst()