Occurrrence analysis improvements for NOINLINE functions
This patch fixes #14567. The idea is simple: if a function is marked NOINLINE then it makes a great candidate for a loop breaker. Implementation is easy too, but it needs a little extra plubming, notably the occ_unf_act field in OccEnv
Showing
- compiler/coreSyn/CoreOpt.hs 4 additions, 2 deletionscompiler/coreSyn/CoreOpt.hs
- compiler/simplCore/OccurAnal.hs 33 additions, 21 deletionscompiler/simplCore/OccurAnal.hs
- compiler/simplCore/SimplCore.hs 4 additions, 3 deletionscompiler/simplCore/SimplCore.hs
- compiler/simplCore/SimplUtils.hs 4 additions, 8 deletionscompiler/simplCore/SimplUtils.hs
- compiler/simplCore/Simplify.hs 2 additions, 2 deletionscompiler/simplCore/Simplify.hs
Loading
Please register or sign in to comment