Lines Matching refs:ExtOpnd

4283                               Instruction *ExtOpnd, bool IsSExt) {  in addPromotedInst()  argument
4285 InstrToOrigTy::iterator It = PromotedInsts.find(ExtOpnd); in addPromotedInst()
4297 PromotedInsts[ExtOpnd] = TypeIsSExt(ExtOpnd->getType(), ExtTy); in addPromotedInst()
4517 Instruction *ExtOpnd = dyn_cast<Instruction>(Ext->getOperand(0)); in getAction() local
4523 if (!ExtOpnd || !canGetThrough(ExtOpnd, ExtTy, PromotedInsts, IsSExt)) in getAction()
4529 if (isa<TruncInst>(ExtOpnd) && InsertedInsts.count(ExtOpnd)) in getAction()
4534 if (isa<SExtInst>(ExtOpnd) || isa<TruncInst>(ExtOpnd) || in getAction()
4535 isa<ZExtInst>(ExtOpnd)) in getAction()
4540 if (!ExtOpnd->hasOneUse() && !TLI.isTruncateFree(ExtTy, ExtOpnd->getType())) in getAction()
4601 Instruction *ExtOpnd = cast<Instruction>(Ext->getOperand(0)); in promoteOperandForOther() local
4603 if (!ExtOpnd->hasOneUse()) { in promoteOperandForOther()
4608 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
4611 ITrunc->moveAfter(ExtOpnd); in promoteOperandForOther()
4616 TPT.replaceAllUsesWith(ExtOpnd, Trunc); in promoteOperandForOther()
4619 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
4629 addPromotedInst(PromotedInsts, ExtOpnd, IsSExt); in promoteOperandForOther()
4631 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
4633 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
4636 for (int OpIdx = 0, EndOpIdx = ExtOpnd->getNumOperands(); OpIdx != EndOpIdx; in promoteOperandForOther()
4638 LLVM_DEBUG(dbgs() << "Operand:\n" << *(ExtOpnd->getOperand(OpIdx)) << '\n'); in promoteOperandForOther()
4639 if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() || in promoteOperandForOther()
4640 !shouldExtOperand(ExtOpnd, OpIdx)) { in promoteOperandForOther()
4645 Value *Opnd = ExtOpnd->getOperand(OpIdx); in promoteOperandForOther()
4651 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
4657 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
4663 ? TPT.createSExt(ExtOpnd, Opnd, Ext->getType()) in promoteOperandForOther()
4664 : TPT.createZExt(ExtOpnd, Opnd, Ext->getType()); in promoteOperandForOther()
4665 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd); in promoteOperandForOther()
4677 return ExtOpnd; in promoteOperandForOther()