Fix seq# case of exprOkForSpeculation
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 20 Mar 2018 16:30:01 +0000 (16:30 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 20 Mar 2018 16:33:01 +0000 (16:33 +0000)
commitabaf43d9d88d6fdf7345b936a571d17cfe1fa140
treeca3971da6ca25d2d670305d68722f5fbb2d8c1d2
parent0a778ebeccefe6c3c2540a06d5a1c585f18e01ab
Fix seq# case of exprOkForSpeculation

This subtle patch fixes Trac #5129 (again; comment:20
and following).

I took the opportunity to document seq# properly; see
Note [seq# magic] in PrelRules, and Note [seq# and expr_ok]
in CoreUtils.
compiler/codeGen/StgCmmExpr.hs
compiler/coreSyn/CoreUtils.hs
compiler/prelude/PrelRules.hs
compiler/prelude/primops.txt.pp
testsuite/tests/codeGen/should_run/all.T