[GHC] #14650: Panic with no extensions (StgCmmEnv: variable not found)
GHC
ghc-devs at haskell.org
Wed Jan 10 08:20:50 UTC 2018
#14650: Panic with no extensions (StgCmmEnv: variable not found)
-------------------------------------+-------------------------------------
Reporter: Zemyla | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: x86_64
Type of failure: Compile-time | (amd64)
crash or panic | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones <simonpj@…>):
In [changeset:"1c1e46c1292f4ac69275770ed588401535abec45/ghc"
1c1e46c1/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="1c1e46c1292f4ac69275770ed588401535abec45"
preInlineUnconditionally is ok for INLINEABLE
When debugging Trac #14650, I found a place where we had
let {-# INLINEABLE f #-}
f = BIG
in f 7
but 'f' wasn't getting inlined at its unique call site.
There's a good reason for that with INLINE things, which
should only inline when saturated, but not for INILNEABLE
things.
This patch narrows the case where preInlineUnconditionally
gives up. It significantly shortens (and improves) the code
for #14650.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14650#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list