Tweak the small integer case of gcdInteger for better optimisation
authorDuncan Coutts <duncan@well-typed.com>
Sat, 13 Jun 2009 13:40:49 +0000 (13:40 +0000)
committerDuncan Coutts <duncan@well-typed.com>
Sat, 13 Jun 2009 13:40:49 +0000 (13:40 +0000)
commit8917ca1699fca558e5404b73eeb8081ecaaa9888
tree02b09121cca9e1cf67cb68c2d3da0bcb6bb82cee
parent5c16b0a0b3e76f08ba87dfd31305f9461a721eca
Tweak the small integer case of gcdInteger for better optimisation
The gcdInt function in the base package now calls gcdInteger with
two small integers. With this weak, the optimiser generates a base
gcdInt that directly calls the gcdInt# primop from this package.
This means there should be no additional overhead compared to when
the base gcdInt called the gcdInt# primop directly.
GHC/Integer.lhs