Add quotRem rules (#22152)
case quotRemInt# x y of (# q, _ #) -> body ====> case quotInt# x y of q -> body case quotRemInt# x y of (# _, r #) -> body ====> case remInt# x y of r -> body
Showing
- compiler/GHC/Core/Opt/ConstantFold.hs 56 additions, 0 deletionscompiler/GHC/Core/Opt/ConstantFold.hs
- compiler/GHC/Core/Opt/Simplify/Iteration.hs 9 additions, 0 deletionscompiler/GHC/Core/Opt/Simplify/Iteration.hs
- testsuite/tests/primops/should_compile/T22152.hs 16 additions, 0 deletionstestsuite/tests/primops/should_compile/T22152.hs
- testsuite/tests/primops/should_compile/T22152.stderr 10 additions, 0 deletionstestsuite/tests/primops/should_compile/T22152.stderr
- testsuite/tests/primops/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/primops/should_compile/all.T
Please register or sign in to comment