Lines Matching defs:ConstCand
585 for (auto ConstCand = S; ConstCand != E; ++ConstCand) {
586 NumUses += ConstCand->Uses.size();
587 if (ConstCand->CumulativeCost > MaxCostItr->CumulativeCost)
588 MaxCostItr = ConstCand;
595 for (auto ConstCand = S; ConstCand != E; ++ConstCand) {
596 auto Value = ConstCand->ConstInt->getValue();
597 Type *Ty = ConstCand->ConstInt->getType();
599 NumUses += ConstCand->Uses.size();
600 LLVM_DEBUG(dbgs() << "= Constant: " << ConstCand->ConstInt->getValue()
603 for (auto User : ConstCand->Uses) {
612 C2->ConstInt->getValue(), ConstCand->ConstInt->getValue());
626 MaxCostItr = ConstCand;
654 for (auto ConstCand = S; ConstCand != E; ++ConstCand) {
655 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue();
658 ConstCand->ConstExpr ? ConstCand->ConstExpr->getType() : nullptr;
660 RebasedConstantInfo(std::move(ConstCand->Uses), Offset, ConstTy));