Lines Matching refs:Zext
847 Instruction *InstCombiner::transformZExtICmp(ICmpInst *Cmp, ZExtInst &Zext,
865 if (In->getType() != Zext.getType())
866 In = Builder.CreateIntCast(In, Zext.getType(), false /*ZExt*/);
873 return replaceInstUsesWith(Zext, In);
888 KnownBits Known = computeKnownBits(Cmp->getOperand(0), 0, &Zext);
898 Constant *Res = ConstantInt::get(Zext.getType(), isNE);
899 return replaceInstUsesWith(Zext, Res);
916 if (Zext.getType() == In->getType())
917 return replaceInstUsesWith(Zext, In);
919 Value *IntCast = Builder.CreateIntCast(In, Zext.getType(), false);
920 return replaceInstUsesWith(Zext, IntCast);
928 if (Cmp->isEquality() && Zext.getType() == Cmp->getOperand(0)->getType()) {
929 if (IntegerType *ITy = dyn_cast<IntegerType>(Zext.getType())) {
933 KnownBits KnownLHS = computeKnownBits(LHS, 0, &Zext);
934 KnownBits KnownRHS = computeKnownBits(RHS, 0, &Zext);
956 return replaceInstUsesWith(Zext, Result);