SPECIALIZE silently fails to apply
|Reported by:||crockeea||Owned by:|
|Operating System:||Unknown/Multiple||Architecture:||x86_64 (amd64)|
|Type of failure:||None/Unknown||Difficulty:||Unknown|
|Test Case:||Blocked By:|
There seem to be two problems:
- The active SPECIALIZE pragma should be applied, but isn't. This can be seen by comparing the core and runtimes of fcTest (slow) vs vtTest (fast). I need this version of the pragma in my real code as the phantom type m is reified, so I need to specialize the vector code without specifying the phantom type.
- I can get fcTest to run fast if I use the commented-out SPECIALIZE pragma instead. However, that pragma seems very straightforward to me (all types are concrete). The docs indicate that GHC should automatically specialize in most cases, why does it not specialize to the commented-out signature automatically?
This problem is also posted here: http://stackoverflow.com/questions/21071706/specialization-with-constraints
Change History (21)
comment:20 follow-up: ↓ 21 Changed 2 months ago by carter
Note: See TracTickets for help on using tickets.