Redundancy elimination, and how to prevent bindings from being floated.

Roman Leshchinskiy rl at cse.unsw.edu.au
Fri Feb 18 11:41:44 CET 2011


Ben Lippmeier wrote:
>
> Another idea would be to add some primops like the following:
>
>
> noopInt#   :: Int#   -> State# s -> State# s
> noopFloat# :: Float# -> State# s -> State# s
> ...

Have a look at GHC.Prim.touch#. Note that it's special and can be
instantiated with unboxed types, too.

Roman






More information about the Cvs-ghc mailing list