patch applied (ghc): Always expose the unfolding of something with an InlineRule

Simon Peyton Jones simonpj at microsoft.com
Mon Dec 21 11:10:45 EST 2009


Fri Dec 18 08:43:16 PST 2009  simonpj at microsoft.com
  * Always expose the unfolding of something with an InlineRule
  Ignore-this: 4f952f423848b8840fab69d63ee81d8f
  
  Previously a bottoming function with a strictness wrapper 
  had a hidden inlining, and that was Very Bad, because in 
      f x = if ... then bot_fun x else x+1
  we really want to pass the *unboxed* x to bot_fun. This
  happens quite a bit in error handling code, eg for array
  indexing.

    M ./compiler/main/TidyPgm.lhs -9 +16

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20091218164316-1287e-670a3718821af3ec75345360cf3854b4d426242a.gz



More information about the Cvs-ghc mailing list