Home | History | Annotate | Download | only in InstCombine

Lines Matching defs:Rem

205       Value *Rem;
207 Rem = Builder->CreateURem(Op0BO, Op1BO);
209 Rem = Builder->CreateSRem(Op0BO, Op1BO);
210 Rem->takeName(BO);
213 return BinaryOperator::CreateSub(Op0BO, Rem);
214 return BinaryOperator::CreateSub(Rem, Op0BO);
299 // div/rem X, (Cond ? 0 : Y) -> div/rem X, Y
304 // div/rem X, (Cond ? Y : 0) -> div/rem X, Y
314 // Change the div/rem to use 'Y' instead of the select.
317 // Okay, we know we replace the operand of the div/rem with 'Y' with no
410 // (X - (X rem Y)) / Y -> X / Y; usually originates as ((X / Y) * Y) / Y
590 // Handle cases involving: rem X, (select Cond, Y, Z)
604 // See if we can fold away this rem instruction.
662 // Handle the integer rem common cases
725 // Handle cases involving: rem X, (select Cond, Y, Z)