Lines Matching refs:Cst
250 static bool shouldConvertUse(const Constant *Cst, const Instruction *Instr, in shouldConvertUse() argument
316 static bool shouldConvertImpl(const Constant *Cst) { in shouldConvertImpl() argument
317 if (isa<const UndefValue>(Cst)) in shouldConvertImpl()
327 if (Cst->isZeroValue()) in shouldConvertImpl()
334 if (Cst->getType()->isVectorTy()) in shouldConvertImpl()
336 return isConstantUsingVectorTy(Cst->getType()); in shouldConvertImpl()
543 Constant *Cst = dyn_cast<Constant>(U); in runOnFunction() local
547 if (!Cst || isa<GlobalValue>(Cst) || isa<ConstantExpr>(Cst)) in runOnFunction()
551 if (!shouldConvert(*Cst, PromotionCache)) in runOnFunction()
556 if (!shouldConvertUse(Cst, &I, OpNo)) in runOnFunction()
559 Updates.emplace_back(Cst, &I, OpNo); in runOnFunction()