Lines Matching refs:ExtOpnd

3429                               Instruction *ExtOpnd,  in addPromotedInst()  argument
3432 InstrToOrigTy::iterator It = PromotedInsts.find(ExtOpnd); in addPromotedInst()
3444 PromotedInsts[ExtOpnd] = TypeIsSExt(ExtOpnd->getType(), ExtTy); in addPromotedInst()
3667 Instruction *ExtOpnd = dyn_cast<Instruction>(Ext->getOperand(0)); in getAction() local
3673 if (!ExtOpnd || !canGetThrough(ExtOpnd, ExtTy, PromotedInsts, IsSExt)) in getAction()
3679 if (isa<TruncInst>(ExtOpnd) && InsertedInsts.count(ExtOpnd)) in getAction()
3684 if (isa<SExtInst>(ExtOpnd) || isa<TruncInst>(ExtOpnd) || in getAction()
3685 isa<ZExtInst>(ExtOpnd)) in getAction()
3690 if (!ExtOpnd->hasOneUse() && !TLI.isTruncateFree(ExtTy, ExtOpnd->getType())) in getAction()
3751 Instruction *ExtOpnd = cast<Instruction>(Ext->getOperand(0)); in promoteOperandForOther() local
3753 if (!ExtOpnd->hasOneUse()) { in promoteOperandForOther()
3758 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
3761 ITrunc->moveAfter(ExtOpnd); in promoteOperandForOther()
3766 TPT.replaceAllUsesWith(ExtOpnd, Trunc); in promoteOperandForOther()
3769 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
3779 addPromotedInst(PromotedInsts, ExtOpnd, IsSExt); in promoteOperandForOther()
3781 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
3783 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
3788 for (int OpIdx = 0, EndOpIdx = ExtOpnd->getNumOperands(); OpIdx != EndOpIdx; in promoteOperandForOther()
3790 LLVM_DEBUG(dbgs() << "Operand:\n" << *(ExtOpnd->getOperand(OpIdx)) << '\n'); in promoteOperandForOther()
3791 if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() || in promoteOperandForOther()
3792 !shouldExtOperand(ExtOpnd, OpIdx)) { in promoteOperandForOther()
3797 Value *Opnd = ExtOpnd->getOperand(OpIdx); in promoteOperandForOther()
3803 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
3809 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
3821 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd); in promoteOperandForOther()
3831 TPT.moveBefore(ExtForOpnd, ExtOpnd); in promoteOperandForOther()
3832 TPT.setOperand(ExtOpnd, OpIdx, ExtForOpnd); in promoteOperandForOther()
3841 return ExtOpnd; in promoteOperandForOther()