Lines Matching defs:Zext
897 Instruction *InstCombiner::transformZExtICmp(ICmpInst *Cmp, ZExtInst &Zext,
915 if (In->getType() != Zext.getType())
916 In = Builder.CreateIntCast(In, Zext.getType(), false /*ZExt*/);
923 return replaceInstUsesWith(Zext, In);
938 KnownBits Known = computeKnownBits(Cmp->getOperand(0), 0, &Zext);
948 Constant *Res = ConstantInt::get(Zext.getType(), isNE);
949 return replaceInstUsesWith(Zext, Res);
966 if (Zext.getType() == In->getType())
967 return replaceInstUsesWith(Zext, In);
969 Value *IntCast = Builder.CreateIntCast(In, Zext.getType(), false);
970 return replaceInstUsesWith(Zext, IntCast);
978 if (Cmp->isEquality() && Zext.getType() == Cmp->getOperand(0)->getType()) {
979 if (IntegerType *ITy = dyn_cast<IntegerType>(Zext.getType())) {
983 KnownBits KnownLHS = computeKnownBits(LHS, 0, &Zext);
984 KnownBits KnownRHS = computeKnownBits(RHS, 0, &Zext);
1006 return replaceInstUsesWith(Zext, Result);