• Sylvain Henry's avatar
    Cmm: constant folding `quotRem x 2^N` · 14208853
    Sylvain Henry authored
    `quot` and `rem` are implemented efficiently when the second argument
    is a constant power of 2. This patch uses the same implementations for
    `quotRem` primop.
    14208853
Code owners : Ömer Sinan Ağacan and Simon Marlow
StgCmmPrim.hs 116 KB