Lines Matching refs:VL0
3483 static LoadsState canVectorizeLoads(ArrayRef<Value *> VL, const Value *VL0, in canVectorizeLoads() argument
3495 Type *ScalarTy = VL0->getType(); in canVectorizeLoads()
3548 Loop *L = LI.getLoopFor(cast<LoadInst>(VL0)->getParent()); in canVectorizeLoads()
3558 Align CommonAlignment = cast<LoadInst>(VL0)->getAlign(); in canVectorizeLoads()
4807 auto *VL0 = cast<Instruction>(S.OpValue); in buildTree_rec() local
4808 BB = VL0->getParent(); in buildTree_rec()
4844 assert((!BS.getScheduleData(VL0) || in buildTree_rec()
4845 !BS.getScheduleData(VL0)->isPartOfBundle()) && in buildTree_rec()
4857 auto *PH = cast<PHINode>(VL0); in buildTree_rec()
4866 BS.cancelScheduling(VL, VL0); in buildTree_rec()
4901 bool Reuse = canReuseExtract(VL, VL0, CurrentOrder); in buildTree_rec()
4909 Op0.assign(VL.size(), VL0->getOperand(0)); in buildTree_rec()
4929 Op0.assign(VL.size(), VL0->getOperand(0)); in buildTree_rec()
4936 BS.cancelScheduling(VL, VL0); in buildTree_rec()
4957 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5006 switch (canVectorizeLoads(VL, VL0, *TTI, *DL, *SE, *LI, CurrentOrder, in buildTree_rec()
5032 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5036 Type *ScalarTy = VL0->getType(); in buildTree_rec()
5063 Type *SrcTy = VL0->getOperand(0)->getType(); in buildTree_rec()
5067 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5080 for (unsigned i = 0, e = VL0->getNumOperands(); i < e; ++i) { in buildTree_rec()
5093 CmpInst::Predicate P0 = cast<CmpInst>(VL0)->getPredicate(); in buildTree_rec()
5095 Type *ComparedTy = VL0->getOperand(0)->getType(); in buildTree_rec()
5100 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5114 if (cast<CmpInst>(VL0)->isCommutative()) { in buildTree_rec()
5163 if (isa<BinaryOperator>(VL0) && VL0->isCommutative()) { in buildTree_rec()
5174 for (unsigned i = 0, e = VL0->getNumOperands(); i < e; ++i) { in buildTree_rec()
5192 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5201 Type *Ty0 = cast<GEPOperator>(VL0)->getSourceElementType(); in buildTree_rec()
5210 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5218 Type *Ty1 = VL0->getOperand(1)->getType(); in buildTree_rec()
5232 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5259 Type *VL0Ty = VL0->getOperand(IndexIdx)->getType(); in buildTree_rec()
5268 : DL->getIndexType(cast<GetElementPtrInst>(VL0) in buildTree_rec()
5295 llvm::Type *ScalarTy = cast<StoreInst>(VL0)->getValueOperand()->getType(); in buildTree_rec()
5300 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5315 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5363 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5372 CallInst *CI = cast<CallInst>(VL0); in buildTree_rec()
5381 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5400 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5413 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5428 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5459 BS.cancelScheduling(VL, VL0); in buildTree_rec()
5470 auto *CI = dyn_cast<CmpInst>(VL0); in buildTree_rec()
5471 if (isa<BinaryOperator>(VL0) || CI) { in buildTree_rec()
5483 Value *BaseOp0 = VL0->getOperand(0); in buildTree_rec()
5484 Value *BaseOp1 = VL0->getOperand(1); in buildTree_rec()
5514 for (unsigned i = 0, e = VL0->getNumOperands(); i < e; ++i) { in buildTree_rec()
5525 BS.cancelScheduling(VL, VL0); in buildTree_rec()
6101 Instruction *VL0 = E->getMainOp(); in getEntryCost() local
6171 auto *SrcVecTy = cast<FixedVectorType>(VL0->getType()); in getEntryCost()
6282 Type *SrcTy = VL0->getOperand(0)->getType(); in getEntryCost()
6285 TTI::getCastContextHint(VL0), CostKind, VL0); in getEntryCost()
6296 if (!MinBWs.count(VL0) || VecTy != SrcVecTy) { in getEntryCost()
6299 TTI::getCastContextHint(VL0), CostKind, VL0); in getEntryCost()
6310 CmpInst::BAD_ICMP_PREDICATE, CostKind, VL0); in getEntryCost()
6335 E->getOpcode(), VecTy, MaskTy, VecPred, CostKind, VL0); in getEntryCost()
6411 SmallVector<const Value *, 4> Operands(VL0->operand_values()); in getEntryCost()
6414 Op2VK, Op1VP, Op2VP, Operands, VL0); in getEntryCost()
6421 Op2VK, Op1VP, Op2VP, Operands, VL0); in getEntryCost()
6451 Align Alignment = cast<LoadInst>(VL0)->getAlign(); in getEntryCost()
6453 Instruction::Load, ScalarTy, Alignment, 0, CostKind, VL0); in getEntryCost()
6461 CostKind, VL0); in getEntryCost()
6469 Instruction::Load, VecTy, cast<LoadInst>(VL0)->getPointerOperand(), in getEntryCost()
6470 /*VariableMask=*/false, CommonAlignment, CostKind, VL0); in getEntryCost()
6479 cast<StoreInst>(IsReorder ? VL[E->ReorderIndices.front()] : VL0); in getEntryCost()
6482 Instruction::Store, ScalarTy, Alignment, 0, CostKind, VL0); in getEntryCost()
6485 Instruction::Store, VecTy, Alignment, 0, CostKind, VL0); in getEntryCost()
6490 CallInst *CI = cast<CallInst>(VL0); in getEntryCost()
6518 (isa<CmpInst>(VL0) && isa<CmpInst>(E->getAltOp()))) && in getEntryCost()
6566 } else if (auto *CI0 = dyn_cast<CmpInst>(VL0)) { in getEntryCost()
6569 CI0->getPredicate(), CostKind, VL0); in getEntryCost()
7871 Instruction *VL0 = E->getMainOp(); in vectorizeTree() local
7872 Type *ScalarTy = VL0->getType(); in vectorizeTree()
7873 if (auto *Store = dyn_cast<StoreInst>(VL0)) in vectorizeTree()
7875 else if (auto *IE = dyn_cast<InsertElementInst>(VL0)) in vectorizeTree()
7884 auto *PH = cast<PHINode>(VL0); in vectorizeTree()
7926 Builder.SetInsertPoint(VL0); in vectorizeTree()
7959 unsigned Offset = *getInsertIndex(VL0); in vectorizeTree()
8029 LLVM_DEBUG(dbgs() << "SLP: Diamond merged for " << *VL0 << ".\n"); in vectorizeTree()
8033 auto *CI = cast<CastInst>(VL0); in vectorizeTree()
8051 LLVM_DEBUG(dbgs() << "SLP: Diamond merged for " << *VL0 << ".\n"); in vectorizeTree()
8055 CmpInst::Predicate P0 = cast<CmpInst>(VL0)->getPredicate(); in vectorizeTree()
8057 propagateIRFlags(V, E->Scalars, VL0); in vectorizeTree()
8074 LLVM_DEBUG(dbgs() << "SLP: Diamond merged for " << *VL0 << ".\n"); in vectorizeTree()
8093 LLVM_DEBUG(dbgs() << "SLP: Diamond merged for " << *VL0 << ".\n"); in vectorizeTree()
8099 propagateIRFlags(V, E->Scalars, VL0); in vectorizeTree()
8136 LLVM_DEBUG(dbgs() << "SLP: Diamond merged for " << *VL0 << ".\n"); in vectorizeTree()
8143 propagateIRFlags(V, E->Scalars, VL0); in vectorizeTree()
8161 LoadInst *LI = cast<LoadInst>(VL0); in vectorizeTree()
8198 auto *SI = cast<StoreInst>(VL0); in vectorizeTree()
8231 auto *GEP0 = cast<GetElementPtrInst>(VL0); in vectorizeTree()
8262 CallInst *CI = cast<CallInst>(VL0); in vectorizeTree()
8284 CallInst *CEI = cast<CallInst>(VL0); in vectorizeTree()
8326 propagateIRFlags(V, E->Scalars, VL0); in vectorizeTree()
8341 (isa<CmpInst>(VL0) && isa<CmpInst>(E->getAltOp()))) && in vectorizeTree()
8345 if (Instruction::isBinaryOp(E->getOpcode()) || isa<CmpInst>(VL0)) { in vectorizeTree()
8355 LLVM_DEBUG(dbgs() << "SLP: Diamond merged for " << *VL0 << ".\n"); in vectorizeTree()
8365 } else if (auto *CI0 = dyn_cast<CmpInst>(VL0)) { in vectorizeTree()