{-# 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 |