#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
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to