Lines Matching defs:Sext
1296 SExtInst &Sext) {
1309 if (In->getType() != Sext.getType())
1310 In = Builder.CreateIntCast(In, Sext.getType(), true /*SExt*/);
1312 return replaceInstUsesWith(Sext, In);
1321 KnownBits Known = computeKnownBits(Op0, 0, &Sext);
1330 ConstantInt::getAllOnesValue(Sext.getType()) :
1331 ConstantInt::getNullValue(Sext.getType());
1332 return replaceInstUsesWith(Sext, V);
1363 if (Sext.getType() == In->getType())
1364 return replaceInstUsesWith(Sext, In);
1365 return CastInst::CreateIntegerCast(In, Sext.getType(), true/*SExt*/);
1428 Instruction *InstCombinerImpl::visitSExt(SExtInst &Sext) {
1431 if (Sext.hasOneUse() && isa<TruncInst>(Sext.user_back()))
1434 if (Instruction *I = commonCastTransforms(Sext))
1437 Value *Src = Sext.getOperand(0);
1438 Type *SrcTy = Src->getType(), *DestTy = Sext.getType();
1443 if (isKnownNonNegative(Src, SQ.getWithInstruction(&Sext))) {
1455 << Sext << '\n');
1461 if (ComputeNumSignBits(Res, 0, &Sext) > DestBitSize - SrcBitSize)
1462 return replaceInstUsesWith(Sext, Res);
1475 if (ComputeNumSignBits(X, 0, &Sext) > XBitSize - SrcBitSize)
1499 return transformSExtICmp(Cmp, Sext);
1530 A = Builder.CreateShl(A, NewShAmt, Sext.getName());
1553 if (Sext.getFunction() &&
1554 Sext.getFunction()->hasFnAttribute(Attribute::VScaleRange)) {
1556 Sext.getFunction()->getFnAttribute(Attribute::VScaleRange);
1560 return replaceInstUsesWith(Sext, VScale);