Admin message

Due to a large amount of spam we do not allow new users to create repositories, they are "external" users. If you are a new user and want to create a repository, for example for forking GHC, open a new issue on ghc/ghc using the "get-verified" issue template

(very) bad inline heuristics
I observe a bad case for inlining blowup for the time library. Observed for 7.7, just checked in 7.9. The problem is so bad that the PowerPC32 assembler cannot resolve cross-routine references. (I have no error message at hand, but could try to get one.) Instead here are the stats for x86, with inlining and certain inlining suppressed. The architecture seems irrelevant. ``` $ file ./libraries/time/dist-install/build/Data/Time/Format.o ./libraries/time/dist-install/build/Data/Time/Format.o: Mach-O object i386 $ ls -l ./libraries/time/dist-install/build/Data/Time/Format.* -rw-r--r-- 1 ggreif staff 61875 Mar 15 16:48 ./libraries/time/dist-install/build/Data/Time/Format.dyn_hi -rw-r--r-- 1 ggreif staff 450864 Mar 15 16:48 ./libraries/time/dist-install/build/Data/Time/Format.dyn_o -rw-r--r-- 1 ggreif staff 61863 Mar 15 16:48 ./libraries/time/dist-install/build/Data/Time/Format.hi -rw-r--r-- 1 ggreif staff 332216 Mar 15 16:48 ./libraries/time/dist-install/build/Data/Time/Format.o ``` With following patch applied: \<https://github.com/ggreif/packages-time/commit/83f08b8896b950707a910fed4e30bddb7ee7f52f\> I get: ``` $ ls -l ./libraries/time/dist-install/build/Data/Time/Format.* -rw-r--r-- 1 ggreif staff 10554 Mar 16 00:08 ./libraries/time/dist-install/build/Data/Time/Format.dyn_hi -rw-r--r-- 1 ggreif staff 106832 Mar 16 00:08 ./libraries/time/dist-install/build/Data/Time/Format.dyn_o -rw-r--r-- 1 ggreif staff 10542 Mar 16 00:08 ./libraries/time/dist-install/build/Data/Time/Format.hi -rw-r--r-- 1 ggreif staff 78864 Mar 16 00:08 ./libraries/time/dist-install/build/Data/Time/Format.o ``` The factor is 4.2 for Format.o, Format.dyn_o and 5.8 for the .hi files. <details><summary>Trac metadata</summary> | Trac field | Value | | ---------------------- | ------------ | | Version | 7.7 | | Type | Bug | | TypeOfFailure | OtherFailure | | Priority | normal | | Resolution | Unresolved | | Component | Compiler | | Test case | | | Differential revisions | | | BlockedBy | | | Related | | | Blocking | | | CC | | | Operating system | | | Architecture | | </details> <!-- {"blocked_by":[],"summary":"(very) bad inline heuristics","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"7.7","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"I observe a bad case for inlining blowup for the time library. Observed for 7.7, just checked in 7.9.\r\n\r\nThe problem is so bad that the PowerPC32 assembler cannot resolve cross-routine references.\r\n(I have no error message at hand, but could try to get one.)\r\n\r\nInstead here are the stats for x86, with inlining and certain inlining suppressed. The architecture seems irrelevant.\r\n{{{\r\n$ file ./libraries/time/dist-install/build/Data/Time/Format.o\r\n./libraries/time/dist-install/build/Data/Time/Format.o: Mach-O object i386\r\n\r\n$ ls -l ./libraries/time/dist-install/build/Data/Time/Format.*\r\n-rw-r--r-- 1 ggreif staff 61875 Mar 15 16:48 ./libraries/time/dist-install/build/Data/Time/Format.dyn_hi\r\n-rw-r--r-- 1 ggreif staff 450864 Mar 15 16:48 ./libraries/time/dist-install/build/Data/Time/Format.dyn_o\r\n-rw-r--r-- 1 ggreif staff 61863 Mar 15 16:48 ./libraries/time/dist-install/build/Data/Time/Format.hi\r\n-rw-r--r-- 1 ggreif staff 332216 Mar 15 16:48 ./libraries/time/dist-install/build/Data/Time/Format.o\r\n}}}\r\n\r\nWith following patch applied:\r\n\r\n<https://github.com/ggreif/packages-time/commit/83f08b8896b950707a910fed4e30bddb7ee7f52f>\r\n\r\nI get:\r\n{{{\r\n$ ls -l ./libraries/time/dist-install/build/Data/Time/Format.*\r\n-rw-r--r-- 1 ggreif staff 10554 Mar 16 00:08 ./libraries/time/dist-install/build/Data/Time/Format.dyn_hi\r\n-rw-r--r-- 1 ggreif staff 106832 Mar 16 00:08 ./libraries/time/dist-install/build/Data/Time/Format.dyn_o\r\n-rw-r--r-- 1 ggreif staff 10542 Mar 16 00:08 ./libraries/time/dist-install/build/Data/Time/Format.hi\r\n-rw-r--r-- 1 ggreif staff 78864 Mar 16 00:08 ./libraries/time/dist-install/build/Data/Time/Format.o\r\n}}}\r\nThe factor is 4.2 for Format.o, Format.dyn_o\r\nand 5.8 for the .hi files.\r\n","type_of_failure":"OtherFailure","blocking":[]} -->
issue