[GHC] #1434: Missing RULEs for truncate
GHC
cvs-ghc at haskell.org
Tue Oct 19 22:03:56 EDT 2010
#1434: Missing RULEs for truncate
------------------------------------------+---------------------------------
Reporter: ghc@… | Owner:
Type: task | Status: patch
Priority: low | Milestone: 7.0.1
Component: libraries/base | Version: 6.4.1
Keywords: rules | Testcase:
Blockedby: | Difficulty: Unknown
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: Runtime performance bug
------------------------------------------+---------------------------------
Changes (by daniel.is.fischer):
* status: new => patch
Comment:
Patch with rewrite rules for the sized Int and Word types whose ranges are
contained in Int's range. Unfortunately, we can't have a rule for Word
here, that would need its own primop to improve much on the default
implementation. It doesn't depend on #2271, but it will only help with
truncate without it.
Please review and merge.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1434#comment:21>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list