On 10/16/2016 07:59 AM, Prathamesh Kulkarni wrote: > + /* Disable the transform if either is a constant, since > division-by-constant > + may have specialized expansion. */ > + if (CONSTANT_CLASS_P (op1) || CONSTANT_CLASS_P (op2)) > + return false;
Hello. I've just played a bit with DIVMOD and realized that the DIVMOD optimization is disable when either op1 or op2 are constant. Aforementioned hunk contains a bit strange comment, where one is not sure that the condition is intentional? Thanks for clarification. Martin