Lines Matching refs:ICI
510 Instruction *InstCombiner::transformZExtICmp(ICmpInst *ICI, Instruction &CI, in transformZExtICmp() argument
515 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(ICI->getOperand(1))) { in transformZExtICmp()
520 if ((ICI->getPredicate() == ICmpInst::ICMP_SLT && Op1CV == 0) || in transformZExtICmp()
521 (ICI->getPredicate() == ICmpInst::ICMP_SGT &&Op1CV.isAllOnesValue())) { in transformZExtICmp()
522 if (!DoXform) return ICI; in transformZExtICmp()
524 Value *In = ICI->getOperand(0); in transformZExtICmp()
531 if (ICI->getPredicate() == ICmpInst::ICMP_SGT) { in transformZExtICmp()
549 ICI->isEquality()) { in transformZExtICmp()
553 ComputeMaskedBits(ICI->getOperand(0), KnownZero, KnownOne); in transformZExtICmp()
557 if (!DoXform) return ICI; in transformZExtICmp()
559 bool isNE = ICI->getPredicate() == ICmpInst::ICMP_NE; in transformZExtICmp()
570 Value *In = ICI->getOperand(0); in transformZExtICmp()
593 if (ICI->isEquality() && CI.getType() == ICI->getOperand(0)->getType()) { in transformZExtICmp()
596 Value *LHS = ICI->getOperand(0); in transformZExtICmp()
597 Value *RHS = ICI->getOperand(1); in transformZExtICmp()
608 if (!DoXform) return ICI; in transformZExtICmp()
621 if (ICI->getPredicate() == ICmpInst::ICMP_EQ) in transformZExtICmp()
623 Result->takeName(ICI); in transformZExtICmp()
833 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Src)) in visitZExt() local
834 return transformZExtICmp(ICI, CI); in visitZExt()
891 Instruction *InstCombiner::transformSExtICmp(ICmpInst *ICI, Instruction &CI) { in transformSExtICmp() argument
892 Value *Op0 = ICI->getOperand(0), *Op1 = ICI->getOperand(1); in transformSExtICmp()
893 ICmpInst::Predicate Pred = ICI->getPredicate(); in transformSExtICmp()
915 if (ICI->hasOneUse() && in transformSExtICmp()
916 ICI->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){ in transformSExtICmp()
923 Value *In = ICI->getOperand(0); in transformSExtICmp()
1105 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Src)) in visitSExt() local
1106 return transformSExtICmp(ICI, CI); in visitSExt()