Get evaluated-ness right in the back end
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 3 Jan 2018 10:48:26 +0000 (10:48 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 3 Jan 2018 11:26:20 +0000 (11:26 +0000)
commitbd438b2d67ec8f5d8ac8472f13b3175b569951b9
tree341778b90b4544430393898d3bdfc93ce08601bd
parent9e5535ca667e060ce1431d42cdfc3a13ae080a88
Get evaluated-ness right in the back end

See Trac #14626, comment:4.  We want to maintain evaluted-ness
info on Ids into the code generateor for two reasons
(see Note [Preserve evaluated-ness in CorePrep] in CorePrep)

- DataToTag magic
- Potentially using it in the codegen (this is Gabor's
  current work)

But it was all being done very inconsistently, and actually
outright wrong -- the DataToTag magic hasn't been working for
years.

This patch tidies it all up, with Notes to match.
20 files changed:
compiler/basicTypes/IdInfo.hs
compiler/coreSyn/CorePrep.hs
compiler/coreSyn/CoreTidy.hs
compiler/iface/ToIface.hs
compiler/main/TidyPgm.hs
testsuite/tests/codeGen/should_compile/Makefile
testsuite/tests/codeGen/should_compile/T14626.hs [new file with mode: 0644]
testsuite/tests/codeGen/should_compile/T14626.stdout [new file with mode: 0644]
testsuite/tests/codeGen/should_compile/all.T
testsuite/tests/deSugar/should_compile/T2431.stderr
testsuite/tests/roles/should_compile/Roles13.stderr
testsuite/tests/simplCore/should_compile/T13143.stderr
testsuite/tests/simplCore/should_compile/T3717.stderr
testsuite/tests/simplCore/should_compile/T3772.stdout
testsuite/tests/simplCore/should_compile/T4908.stderr
testsuite/tests/simplCore/should_compile/T4930.stderr
testsuite/tests/simplCore/should_compile/T7360.stderr
testsuite/tests/simplCore/should_compile/T9400.stderr
testsuite/tests/simplCore/should_compile/spec-inline.stderr
testsuite/tests/stranal/should_compile/T10694.stderr