Re: [GHC] #2396: Default class method not inlined

2010-10-19 Thread GHC
#2396: Default class method not inlined
--+-
  Reporter:  sedillard|  Owner:  
  Type:  bug  | Status:  closed  
  Priority:  low  |  Milestone:  7.0.1   
 Component:  Compiler |Version:  6.8.3   
Resolution:  fixed|   Keywords:  
  Testcase:   |  Blockedby:  
Difficulty:  Unknown  | Os:  Unknown/Multiple
  Blocking:   |   Architecture:  Unknown/Multiple
   Failure:  Runtime performance bug  |  
--+-
Changes (by reinerp):

  * status:  new = closed
  * resolution:  = fixed


Comment:

 The given program fails to compile with the 7.0 release candidate, due to
 #4418. Working around this problem by adding the fundep {{{pm - pv}}} to
 the {{{PackedMat}}} class, it compiles and gives Core essentially the same
 as the 6.12 Core: no unnecessary constructors.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2396#comment:11
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2396: Default class method not inlined

2010-10-13 Thread GHC
#2396: Default class method not inlined
-+--
Reporter:  sedillard |Owner: 
Type:  bug   |   Status:  new
Priority:  low   |Milestone:  7.0.1  
   Component:  Compiler  |  Version:  6.8.3  
Keywords:| Testcase: 
   Blockedby:|   Difficulty:  Unknown
  Os:  Unknown/Multiple  | Blocking: 
Architecture:  Unknown/Multiple  |  Failure:  Runtime performance bug
-+--

Comment(by reinerp):

 With ghc 6.12.3, we get the following core from your file:

 {{{
 Test.$wmultmv3d =
   \ (ww_svV :: Double#)
 (ww1_svW :: Double#)
 (ww2_svX :: Double#)
 (ww3_sw3 :: Double#)
 (ww4_sw4 :: Double#)
 (ww5_sw5 :: Double#)
 (ww6_swb :: Double#)
 (ww7_swc :: Double#)
 (ww8_swd :: Double#)
 (w_swj :: Test.Vec3D) -
 case w_swj of _ { Test.Vec3D rb_XtF rb1_XtH rb2_XtJ -
 (# +##
  (*## rb_XtF ww_svV)
  (+##
 (*## rb1_XtH ww1_svW) (*## rb2_XtJ ww2_svX)),
+##
  (*## rb_XtF ww3_sw3)
  (+##
 (*## rb1_XtH ww4_sw4) (*## rb2_XtJ ww5_sw5)),
+##
  (*## rb_XtF ww6_swb)
  (+##
 (*## rb1_XtH ww7_swc) (*## rb2_XtJ ww8_swd)) #)
 }
 ...
 Test.multmv3d :: Test.Mat33D - Test.Vec3D - Test.Vec3D
 GblId

  Worker Test.$wmultmv3d

 Test.multmv3d =
   __inline_me (\ (w_svR :: Test.Mat33D) (w1_swj :: Test.Vec3D) -
  case w_svR of _ { Test.:. ww_svT ww1_svZ -
  case ww_svT of _ { Test.Vec3D ww3_svV ww4_svW ww5_svX -
  case ww1_svZ of _ { Test.:. ww7_sw1 ww8_sw7 -
  case ww7_sw1 of _ { Test.Vec3D ww10_sw3 ww11_sw4 ww12_sw5
 -
  case ww8_sw7 of _ { Test.:. ww14_sw9 _ -
  case ww14_sw9 of _ { Test.Vec3D ww17_swb ww18_swc
 ww19_swd -
  case Test.$wmultmv3d
 ww3_svV
 ww4_svW
 ww5_svX
 ww10_sw3
 ww11_sw4
 ww12_sw5
 ww17_swb
 ww18_swc
 ww19_swd
 w1_swj
  of _ { (# ww21_swp, ww22_swq, ww23_swr #) -
  Test.Vec3D ww21_swp ww22_swq ww23_swr
  }
  }
  }
  }
  }
  }
  })

 }}}
 which has no unnecessary constructors.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2396#comment:9
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2396: Default class method not inlined

2010-10-13 Thread GHC
#2396: Default class method not inlined
-+--
Reporter:  sedillard |Owner: 
Type:  bug   |   Status:  new
Priority:  low   |Milestone:  7.0.1  
   Component:  Compiler  |  Version:  6.8.3  
Keywords:| Testcase: 
   Blockedby:|   Difficulty:  Unknown
  Os:  Unknown/Multiple  | Blocking: 
Architecture:  Unknown/Multiple  |  Failure:  Runtime performance bug
-+--

Comment(by simonpj):

 So you are saying that 6.12 was good?  What about the 7.0 release
 candidate.  If that's ok too, just close the ticket. (Again I can't see a
 good way to make a regression test.)

 Simon

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2396#comment:10
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2396: Default class method not inlined

2009-04-13 Thread GHC
#2396: Default class method not inlined
-+--
Reporter:  sedillard |Owner:  
Type:  run-time performance bug  |   Status:  new 
Priority:  normal|Milestone:  6.12 branch 
   Component:  Compiler  |  Version:  6.8.3   
Severity:  normal|   Resolution:  
Keywords:|   Difficulty:  Unknown 
Testcase:|   Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
-+--
Changes (by igloo):

  * milestone:  6.10 branch = 6.12 branch

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2396#comment:5
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2396: Default class method not inlined

2008-07-07 Thread GHC
#2396: Default class method not inlined
--+-
 Reporter:  sedillard |  Owner: 
 Type:  run-time performance bug  | Status:  new
 Priority:  normal|  Milestone:  6.10 branch
Component:  Compiler  |Version:  6.8.3  
 Severity:  normal| Resolution: 
 Keywords:| Difficulty:  Unknown
 Testcase:|   Architecture:  Unknown
   Os:  Unknown   |  
--+-
Changes (by simonmar):

  * type:  bug = run-time performance bug

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2396#comment:2
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2396: Default class method not inlined

2008-07-05 Thread GHC
#2396: Default class method not inlined
---+
 Reporter:  sedillard  |  Owner: 
 Type:  bug| Status:  new
 Priority:  normal |  Milestone:  6.10 branch
Component:  Compiler   |Version:  6.8.3  
 Severity:  normal | Resolution: 
 Keywords: | Difficulty:  Unknown
 Testcase: |   Architecture:  Unknown
   Os:  Unknown|  
---+
Changes (by igloo):

  * difficulty:  = Unknown
  * milestone:  = 6.10 branch

Comment:

 Thanks for the testcase; we'll take a look.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2396#comment:1
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #2396: Default class method not inlined

2008-06-26 Thread GHC
#2396: Default class method not inlined
--+-
Reporter:  sedillard  |   Owner:  
Type:  bug|  Status:  new 
Priority:  normal |   Component:  Compiler
 Version:  6.8.3  |Severity:  normal  
Keywords: |Testcase:  
Architecture:  Unknown|  Os:  Unknown 
--+-
 Default class method not inlined. Class PackedMat has a method unpackMat.
 There is one instance declared. In the attached file, the method
 definitions of that instance are commented out, falling back to the
 default defs. Compile as-is (with -O2) to see the bug. Uncomment the
 instance method definitions to see the desired behavior.

 possibly related to #672

 http://www.haskell.org/pipermail/glasgow-haskell-
 users/2008-June/014974.html

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2396
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs