[GHC] #9740: D380 caused fft2 regressions

#9740: D380 caused fft2 regressions -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.8.3 Keywords: | Operating System: Architecture: Unknown/Multiple | Unknown/Multiple Difficulty: Easy (less than 1 | Type of failure: Runtime hour) | performance bug Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: Phab:D390 -------------------------------------+------------------------------------- When I got rid of the hand-unboxing in GHC.List, I missed the fact that a `take` helper function took an unboxed value and was therefore strict. When I changed that to a regular function, I didn't make it strict, and this caused a regression in fft2 and (I believe) also a test suite perf test. The function is properly strictified in D390. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9740 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9740: D380 caused fft2 regressions -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.8.3 Resolution: | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Easy (less than 1 Type of failure: Runtime | hour) performance bug | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: Phab:D390 | -------------------------------------+------------------------------------- Changes (by dfeuer): * status: new => patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9740#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9740: D380 caused fft2 regressions -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.8.3 Libraries | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: Runtime | Blocked By: performance bug | Related Tickets: Test Case: | Blocking: | Differential Revisions: Phab:D390 | -------------------------------------+------------------------------------- Changes (by dfeuer): * cc: core-libraries-committee@… (added) * component: Compiler => Core Libraries -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9740#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9740: D380 caused fft2 regressions
-------------------------------------+-------------------------------------
Reporter: dfeuer | Owner:
Type: bug | Status: patch
Priority: normal | Milestone: 7.10.1
Component: Core | Version: 7.8.3
Libraries | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: | Difficulty: Easy (less than 1
Unknown/Multiple | hour)
Type of failure: Runtime | Blocked By:
performance bug | Related Tickets:
Test Case: |
Blocking: |
Differential Revisions: Phab:D390 |
-------------------------------------+-------------------------------------
Comment (by Joachim Breitner

#9740: D380 caused fft2 regressions -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.8.3 Libraries | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: Runtime | Blocked By: performance bug | Related Tickets: Test Case: | Blocking: | Differential Revisions: Phab:D390 | -------------------------------------+------------------------------------- Changes (by nomeata): * status: patch => closed * resolution: => fixed Comment: Thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9740#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9740: D380 caused fft2 regressions -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.8.3 Libraries | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: Runtime | Blocked By: performance bug | Related Tickets: Test Case: | Blocking: | Differential Revisions: Phab:D390 | -------------------------------------+------------------------------------- Changes (by nomeata): * status: closed => new * resolution: fixed => Comment: It fixed the regression in T7257: http://ghcspeed- nomeata.rhcloud.com/timeline/?exe=2&base=2%2B68&ben=tests%2Falloc%2FT7257&env=1&revs=50&equid=on but not the one in fft2: http://ghcspeed- nomeata.rhcloud.com/timeline/?exe=2&base=2%2B68&ben=nofib%2Fallocs%2Ffft2&env=1&revs=50&equid=on Do your measurements disagree, or were you just expecting this to fix it. Could you have a second look? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9740#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9740: D380 caused fft2 regressions -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.8.3 Libraries | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: Runtime | Blocked By: performance bug | Related Tickets: Test Case: | Blocking: | Differential Revisions: Phab:D390 | -------------------------------------+------------------------------------- Comment (by dfeuer): Replying to [comment:5 nomeata]:
It fixed the regression in T7257: http://ghcspeed- nomeata.rhcloud.com/timeline/?exe=2&base=2%2B68&ben=tests%2Falloc%2FT7257&env=1&revs=50&equid=on but not the one in fft2: http://ghcspeed- nomeata.rhcloud.com/timeline/?exe=2&base=2%2B68&ben=nofib%2Fallocs%2Ffft2&env=1&revs=50&equid=on
Do your measurements disagree, or were you just expecting this to fix it. Could you have a second look?
That's most peculiar. I had not measured T7257, but I ''definitely'' saw an improvement in fft2, unless I read something all wrong. I'm running nofib now and will review the numbers again. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9740#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9740: D380 caused fft2 regressions -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.8.3 Libraries | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: Runtime | Blocked By: performance bug | Related Tickets: Test Case: | Blocking: | Differential Revisions: Phab:D390 | -------------------------------------+------------------------------------- Comment (by dfeuer): I think I found the problem. I accidentally had an unrestricted `INLINE` on `take`. I'm trying again now. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9740#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9740: D380 caused fft2 regressions -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.8.3 Libraries | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: Runtime | Blocked By: performance bug | Related Tickets: Test Case: | Blocking: | Differential Revisions: Phab:D394 | -------------------------------------+------------------------------------- Changes (by dfeuer): * status: new => patch * differential: Phab:D390 => Phab:D394 Comment: It looks like I've actually squashed this one now and recovered nomeata's full fft2 improvement. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9740#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9740: D380 caused fft2 regressions
-------------------------------------+-------------------------------------
Reporter: dfeuer | Owner:
Type: bug | Status: patch
Priority: normal | Milestone: 7.10.1
Component: Core | Version: 7.8.3
Libraries | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: | Difficulty: Easy (less than 1
Unknown/Multiple | hour)
Type of failure: Runtime | Blocked By:
performance bug | Related Tickets:
Test Case: |
Blocking: |
Differential Revisions: Phab:D394 |
-------------------------------------+-------------------------------------
Comment (by Joachim Breitner

#9740: D380 caused fft2 regressions -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.8.3 Libraries | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: Runtime | Blocked By: performance bug | Related Tickets: Test Case: | Blocking: | Differential Revisions: Phab:D394 | -------------------------------------+------------------------------------- Changes (by nomeata): * status: patch => closed * resolution: => fixed Comment: Fix confirmed. The regression had also affected mandel, where performance is recovered as well. Thanks for taking the time to hunt down the issue! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9740#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC