Lines Matching refs:ExtOpnd

4026                               Instruction *ExtOpnd,  in addPromotedInst()  argument
4029 InstrToOrigTy::iterator It = PromotedInsts.find(ExtOpnd); in addPromotedInst()
4041 PromotedInsts[ExtOpnd] = TypeIsSExt(ExtOpnd->getType(), ExtTy); in addPromotedInst()
4262 Instruction *ExtOpnd = dyn_cast<Instruction>(Ext->getOperand(0)); in getAction() local
4268 if (!ExtOpnd || !canGetThrough(ExtOpnd, ExtTy, PromotedInsts, IsSExt)) in getAction()
4274 if (isa<TruncInst>(ExtOpnd) && InsertedInsts.count(ExtOpnd)) in getAction()
4279 if (isa<SExtInst>(ExtOpnd) || isa<TruncInst>(ExtOpnd) || in getAction()
4280 isa<ZExtInst>(ExtOpnd)) in getAction()
4285 if (!ExtOpnd->hasOneUse() && !TLI.isTruncateFree(ExtTy, ExtOpnd->getType())) in getAction()
4346 Instruction *ExtOpnd = cast<Instruction>(Ext->getOperand(0)); in promoteOperandForOther() local
4348 if (!ExtOpnd->hasOneUse()) { in promoteOperandForOther()
4353 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
4356 ITrunc->moveAfter(ExtOpnd); in promoteOperandForOther()
4361 TPT.replaceAllUsesWith(ExtOpnd, Trunc); in promoteOperandForOther()
4364 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
4374 addPromotedInst(PromotedInsts, ExtOpnd, IsSExt); in promoteOperandForOther()
4376 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
4378 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
4383 for (int OpIdx = 0, EndOpIdx = ExtOpnd->getNumOperands(); OpIdx != EndOpIdx; in promoteOperandForOther()
4385 LLVM_DEBUG(dbgs() << "Operand:\n" << *(ExtOpnd->getOperand(OpIdx)) << '\n'); in promoteOperandForOther()
4386 if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() || in promoteOperandForOther()
4387 !shouldExtOperand(ExtOpnd, OpIdx)) { in promoteOperandForOther()
4392 Value *Opnd = ExtOpnd->getOperand(OpIdx); in promoteOperandForOther()
4398 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
4404 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
4416 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd); in promoteOperandForOther()
4426 TPT.moveBefore(ExtForOpnd, ExtOpnd); in promoteOperandForOther()
4427 TPT.setOperand(ExtOpnd, OpIdx, ExtForOpnd); in promoteOperandForOther()
4436 return ExtOpnd; in promoteOperandForOther()