reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
3911 if (!ExtOpnd->hasOneUse()) { 3916 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); 3919 ITrunc->moveAfter(ExtOpnd); 3924 TPT.replaceAllUsesWith(ExtOpnd, Trunc); 3927 TPT.setOperand(Ext, 0, ExtOpnd); 3937 addPromotedInst(PromotedInsts, ExtOpnd, IsSExt); 3939 TPT.mutateType(ExtOpnd, Ext->getType()); 3941 TPT.replaceAllUsesWith(Ext, ExtOpnd); 3946 for (int OpIdx = 0, EndOpIdx = ExtOpnd->getNumOperands(); OpIdx != EndOpIdx; 3948 LLVM_DEBUG(dbgs() << "Operand:\n" << *(ExtOpnd->getOperand(OpIdx)) << '\n'); 3949 if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() || 3950 !shouldExtOperand(ExtOpnd, OpIdx)) { 3955 Value *Opnd = ExtOpnd->getOperand(OpIdx); 3961 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); 3967 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); 3979 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd); 3989 TPT.moveBefore(ExtForOpnd, ExtOpnd); 3990 TPT.setOperand(ExtOpnd, OpIdx, ExtForOpnd); 3999 return ExtOpnd;