Refactor around `wantToUnbox`
I renamed `wantToUnbox` to `wantToUnboxArg` and then introduced `wantToUnboxResult`, which we call in `mkWWcpr_one` now. I also deleted `splitArgType_maybe` (the single call site outside of `wantToUnboxArg` actually cared about the result type of a function, not an argument) and `splitResultType_maybe` (which is entirely superceded by `wantToUnboxResult`.
Showing
- compiler/GHC/Core/Opt/CprAnal.hs 13 additions, 9 deletionscompiler/GHC/Core/Opt/CprAnal.hs
- compiler/GHC/Core/Opt/WorkWrap/Utils.hs 55 additions, 71 deletionscompiler/GHC/Core/Opt/WorkWrap/Utils.hs
- compiler/GHC/Core/Utils.hs 1 addition, 1 deletioncompiler/GHC/Core/Utils.hs
- compiler/GHC/Types/Demand.hs 1 addition, 1 deletioncompiler/GHC/Types/Demand.hs
Loading
Please register or sign in to comment