Home | History | Annotate | Download | only in Utils

Lines Matching full:instruction

74 // insertFastDiv - Substitutes the div/rem instruction with code that checks the
75 // value of the operands and uses a shorter-faster div/rem instruction when
76 // possible and the longer-slower div/rem instruction otherwise.
84 // Get instruction operands
85 Instruction *Instr = J;
122 Value *ShortDivisorV = FastBuilder.CreateCast(Instruction::Trunc, Divisor,
124 Value *ShortDividendV = FastBuilder.CreateCast(Instruction::Trunc, Dividend,
132 Value *FastQuotientV = FastBuilder.CreateCast(Instruction::ZExt,
135 Value *FastRemainderV = FastBuilder.CreateCast(Instruction::ZExt,
171 // point iterator J at first instruction of successorBB
192 // Get instruction operands
193 Instruction *Instr = J;
206 // Replace all uses of div instruction with quotient phi node
209 // Replace all uses of rem instruction with remainder phi node
231 // Get instruction details
233 bool UseDivOp = Opcode == Instruction::SDiv || Opcode == Instruction::UDiv;
234 bool UseRemOp = Opcode == Instruction::SRem || Opcode == Instruction::URem;
235 bool UseSignedOp = Opcode == Instruction::SDiv ||
236 Opcode == Instruction::SRem;
246 // Get bitwidth of div/rem instruction
255 // Get type for div/rem instruction with bypass bitwidth