Lines Matching refs:ExtOpnd
4046 Instruction *ExtOpnd, in addPromotedInst() argument
4049 InstrToOrigTy::iterator It = PromotedInsts.find(ExtOpnd); in addPromotedInst()
4061 PromotedInsts[ExtOpnd] = TypeIsSExt(ExtOpnd->getType(), ExtTy); in addPromotedInst()
4282 Instruction *ExtOpnd = dyn_cast<Instruction>(Ext->getOperand(0)); in getAction() local
4288 if (!ExtOpnd || !canGetThrough(ExtOpnd, ExtTy, PromotedInsts, IsSExt)) in getAction()
4294 if (isa<TruncInst>(ExtOpnd) && InsertedInsts.count(ExtOpnd)) in getAction()
4299 if (isa<SExtInst>(ExtOpnd) || isa<TruncInst>(ExtOpnd) || in getAction()
4300 isa<ZExtInst>(ExtOpnd)) in getAction()
4305 if (!ExtOpnd->hasOneUse() && !TLI.isTruncateFree(ExtTy, ExtOpnd->getType())) in getAction()
4366 Instruction *ExtOpnd = cast<Instruction>(Ext->getOperand(0)); in promoteOperandForOther() local
4368 if (!ExtOpnd->hasOneUse()) { in promoteOperandForOther()
4373 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
4376 ITrunc->moveAfter(ExtOpnd); in promoteOperandForOther()
4381 TPT.replaceAllUsesWith(ExtOpnd, Trunc); in promoteOperandForOther()
4384 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
4394 addPromotedInst(PromotedInsts, ExtOpnd, IsSExt); in promoteOperandForOther()
4396 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
4398 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
4403 for (int OpIdx = 0, EndOpIdx = ExtOpnd->getNumOperands(); OpIdx != EndOpIdx; in promoteOperandForOther()
4405 LLVM_DEBUG(dbgs() << "Operand:\n" << *(ExtOpnd->getOperand(OpIdx)) << '\n'); in promoteOperandForOther()
4406 if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() || in promoteOperandForOther()
4407 !shouldExtOperand(ExtOpnd, OpIdx)) { in promoteOperandForOther()
4412 Value *Opnd = ExtOpnd->getOperand(OpIdx); in promoteOperandForOther()
4418 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
4424 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
4436 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd); in promoteOperandForOther()
4446 TPT.moveBefore(ExtForOpnd, ExtOpnd); in promoteOperandForOther()
4447 TPT.setOperand(ExtOpnd, OpIdx, ExtForOpnd); in promoteOperandForOther()
4456 return ExtOpnd; in promoteOperandForOther()