Skip to content

{-# INLINE #-} doesn't

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.

Trac metadata
Trac field Value
Version 6.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information