[GHC] #1627: {-# INLINE #-} doesn't
GHC
trac at galois.com
Wed Aug 22 07:21:24 EDT 2007
#1627: {-# INLINE #-} doesn't
-----------------------+----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.7
Severity: normal | Keywords:
Difficulty: Unknown | Os: MacOS X
Testcase: | Architecture: x86
-----------------------+----------------------------------------------------
The attached code has an INLINE pragma for a local function, but the
function doesn't get inlined anyway. The resulting code is very bad.
If the inliner/rewriter was doing its job the final code for foo should be
one readArray (or two without CSE) and an addition. This very far from
the case.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1627>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list