Lines Matching refs:ExtOpnd
2872 Instruction *ExtOpnd = dyn_cast<Instruction>(Ext->getOperand(0)); in getAction() local
2878 if (!ExtOpnd || !canGetThrough(ExtOpnd, ExtTy, PromotedInsts, IsSExt)) in getAction()
2884 if (isa<TruncInst>(ExtOpnd) && InsertedInsts.count(ExtOpnd)) in getAction()
2889 if (isa<SExtInst>(ExtOpnd) || isa<TruncInst>(ExtOpnd) || in getAction()
2890 isa<ZExtInst>(ExtOpnd)) in getAction()
2895 if (!ExtOpnd->hasOneUse() && !TLI.isTruncateFree(ExtTy, ExtOpnd->getType())) in getAction()
2956 Instruction *ExtOpnd = cast<Instruction>(Ext->getOperand(0)); in promoteOperandForOther() local
2958 if (!ExtOpnd->hasOneUse()) { in promoteOperandForOther()
2963 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
2967 ITrunc->insertAfter(ExtOpnd); in promoteOperandForOther()
2972 TPT.replaceAllUsesWith(ExtOpnd, Trunc); in promoteOperandForOther()
2975 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
2986 ExtOpnd, TypeIsSExt(ExtOpnd->getType(), IsSExt))); in promoteOperandForOther()
2988 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
2990 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
2995 for (int OpIdx = 0, EndOpIdx = ExtOpnd->getNumOperands(); OpIdx != EndOpIdx; in promoteOperandForOther()
2997 DEBUG(dbgs() << "Operand:\n" << *(ExtOpnd->getOperand(OpIdx)) << '\n'); in promoteOperandForOther()
2998 if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() || in promoteOperandForOther()
2999 !shouldExtOperand(ExtOpnd, OpIdx)) { in promoteOperandForOther()
3004 Value *Opnd = ExtOpnd->getOperand(OpIdx); in promoteOperandForOther()
3010 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
3016 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
3028 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd); in promoteOperandForOther()
3038 TPT.moveBefore(ExtForOpnd, ExtOpnd); in promoteOperandForOther()
3039 TPT.setOperand(ExtOpnd, OpIdx, ExtForOpnd); in promoteOperandForOther()
3048 return ExtOpnd; in promoteOperandForOther()