Lines Matching refs:ConstInt
181 ConstantInt *ConstInt) { in collectConstantCandidates() argument
187 ConstInt->getValue(), ConstInt->getType()); in collectConstantCandidates()
189 Cost = TTI->getIntImmCost(Inst->getOpcode(), Idx, ConstInt->getValue(), in collectConstantCandidates()
190 ConstInt->getType()); in collectConstantCandidates()
196 std::tie(Itr, Inserted) = ConstCandMap.insert(std::make_pair(ConstInt, 0)); in collectConstantCandidates()
198 ConstCandVec.push_back(ConstantCandidate(ConstInt)); in collectConstantCandidates()
203 dbgs() << "Collect constant " << *ConstInt << " from " << *Inst in collectConstantCandidates()
206 dbgs() << "Collect constant " << *ConstInt << " indirectly from " in collectConstantCandidates()
243 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates() local
244 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
255 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates() local
258 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
269 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) { in collectConstantCandidates() local
272 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
348 auto Value = ConstCand->ConstInt->getValue(); in maximizeConstantsInRange()
349 Type *Ty = ConstCand->ConstInt->getType(); in maximizeConstantsInRange()
352 DEBUG(dbgs() << "= Constant: " << ConstCand->ConstInt->getValue() << "\n"); in maximizeConstantsInRange()
362 C2->ConstInt->getValue(), in maximizeConstantsInRange()
363 ConstCand->ConstInt->getValue()); in maximizeConstantsInRange()
378 DEBUG(dbgs() << "New candidate: " << MaxCostItr->ConstInt->getValue() in maximizeConstantsInRange()
397 ConstInfo.BaseConstant = MaxCostItr->ConstInt; in findAndMakeBaseConstant()
402 APInt Diff = ConstCand->ConstInt->getValue() - in findAndMakeBaseConstant()
417 if (LHS.ConstInt->getType() != RHS.ConstInt->getType()) in findBaseConstants()
418 return LHS.ConstInt->getType()->getBitWidth() < in findBaseConstants()
419 RHS.ConstInt->getType()->getBitWidth(); in findBaseConstants()
420 return LHS.ConstInt->getValue().ult(RHS.ConstInt->getValue()); in findBaseConstants()
428 if (MinValItr->ConstInt->getType() == CC->ConstInt->getType()) { in findBaseConstants()
430 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); in findBaseConstants()