| Anonymous | Login | Signup for a new account | 2013-06-19 05:33 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0005541 | OCaml | OCaml backend (code generation) | public | 2012-03-15 13:45 | 2012-09-24 13:15 | |||||||
| Reporter | gerd | |||||||||||
| Assigned To | ||||||||||||
| Priority | normal | Severity | tweak | Reproducibility | always | |||||||
| Status | resolved | Resolution | suspended | |||||||||
| Platform | OS | OS Version | ||||||||||
| Product Version | 3.12.1 | |||||||||||
| Target Version | Fixed in Version | |||||||||||
| Summary | 0005541: Pervasives.min/max are not inlined | |||||||||||
| Description | I just observed that min/max are not inlined. This prevents that further optimizations on the comparison operator can be applied - min/max always use compare_val. Maybe compiling Pervasives with a slightly increased inlining limit already solves the problem. | |||||||||||
| Steps To Reproduce | ocamlobjinfo <path>/pervasives.cmx | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
Relationships |
|||||||||||
|
|||||||||||
Notes |
|
|
(0007092) xleroy (administrator) 2012-03-16 10:12 |
Unfortunately, type-based specialization of comparisons takes place before inlining. In other words, even if min & max were inlined, they would still use the generic comparison operator. That's one of the several weaknesses of the OCaml inliner. I'm not expecting a solution soon, which is why I'm putting this PR in "suspended" state. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-03-15 13:45 | gerd | New Issue | |
| 2012-03-16 10:12 | xleroy | Note Added: 0007092 | |
| 2012-03-16 10:12 | xleroy | Status | new => resolved |
| 2012-03-16 10:12 | xleroy | Resolution | open => suspended |
| 2012-04-08 19:34 | xleroy | Relationship added | has duplicate 0004808 |
| 2012-04-17 20:20 | gasche | Relationship added | has duplicate 0005592 |
| Copyright © 2000 - 2011 MantisBT Group |