Preserve precise exceptions in strictness analysis
Fix #13380 and #17676 by 1. Changing `raiseIO#` to have `topDiv` instead of `botDiv` 2. Give it special treatment in `Simplifier.Util.mkArgInfo`, treating it as if it still had `botDiv`, to recover dead code elimination. This is the first commit of the plan outlined in !2525 (comment 260886).
parent
2643ba46
No related branches found
No related tags found
Pipeline #17158 passed with warnings
Stage: lint
Stage: quick-build
Stage: build
Stage: full-build
Stage: cleanup
Stage: packaging
Stage: testing
Showing
- compiler/GHC/Core/Op/Simplify/Utils.hs 4 additions, 1 deletioncompiler/GHC/Core/Op/Simplify/Utils.hs
- compiler/basicTypes/Demand.hs 45 additions, 0 deletionscompiler/basicTypes/Demand.hs
- compiler/prelude/primops.txt.pp 3 additions, 18 deletionscompiler/prelude/primops.txt.pp
- testsuite/tests/stranal/should_run/T17676.hs 18 additions, 0 deletionstestsuite/tests/stranal/should_run/T17676.hs
- testsuite/tests/stranal/should_run/all.T 2 additions, 1 deletiontestsuite/tests/stranal/should_run/all.T
Loading
Please register or sign in to comment