summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplStg
Commit message (Collapse)AuthorAgeFilesLines
* Simplify StgCases when all alts refer to the case binderJoachim Breitner2017-04-181-1/+1
| | | | | | as proposed in #13588. Differential Revision: https://phabricator.haskell.org/D3467
* Add failing test case for #13588Joachim Breitner2017-04-184-0/+230
|
* Typos in comments [ci skip]Gabor Greif2017-04-112-2/+2
|
* Add a second regression test for #13536Joachim Breitner2017-04-103-0/+38
| | | | which counts allocations instead of observing recomputation directly.
* StgCse: Do not re-use trivial case scrutineesJoachim Breitner2017-04-104-0/+20
| | | | | | | | | as they might be marked as one-shot, and suddenly we’d evaluate them multiple times. This came up in #13536 (test cases included). The solution was layed out by SPJ in ticket:13536#comment:12. Differential Revision: https://phabricator.haskell.org/D3437
* Add a CSE pass to Stg (#9291)Joachim Breitner2017-01-055-0/+81
This CSE pass only targets data constructor applications. This is probably the best we can do, as function calls and primitive operations might have side-effects. Introduces the flag -fstg-cse, enabled by default with -O for now. It might also be a good candiate for -O2. Differential Revision: https://phabricator.haskell.org/D2871