[GHC] #15426: `elemIndex` and `findIndex` still can't fuse
GHC
ghc-devs at haskell.org
Mon Aug 20 13:48:54 UTC 2018
#15426: `elemIndex` and `findIndex` still can't fuse
-------------------------------------+-------------------------------------
Reporter: kabuhr | Owner: kabuhr
Type: bug | Status: new
Priority: normal | Milestone: 8.8.1
Component: libraries/base | Version: 8.4.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
| testsuite/tests/perf/should_run/T15426.hs
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: | https://phabricator.haskell.org/D5063
-------------------------------------+-------------------------------------
Comment (by simonpj):
OK fine. So if I understand aright:
* Nofib gets no better but no worse
* More fusion happens in other cases (eg the Description)
Sounds good to me. It would be good to include a perf regression test
that will trip if fusion fails in the future. And a Note to explain the
INLINABLE pragma.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15426#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list