Lines Matching refs:Cst
272 static bool shouldConvertUse(const Constant *Cst, const Instruction *Instr, in shouldConvertUse() argument
338 static bool shouldConvertImpl(const Constant *Cst) { in shouldConvertImpl() argument
339 if (isa<const UndefValue>(Cst)) in shouldConvertImpl()
349 if (Cst->isZeroValue()) in shouldConvertImpl()
356 if (Cst->getType()->isVectorTy()) in shouldConvertImpl()
358 return isConstantUsingVectorTy(Cst->getType()); in shouldConvertImpl()
565 Constant *Cst = dyn_cast<Constant>(U); in runOnFunction() local
570 if (!Cst || isa<GlobalValue>(Cst) || !containsOnlyConstantData(Cst)) in runOnFunction()
574 if (!shouldConvert(*Cst, PromotionCache)) in runOnFunction()
579 if (!shouldConvertUse(Cst, &I, OpNo)) in runOnFunction()
582 Updates.emplace_back(Cst, &I, OpNo); in runOnFunction()