Roman Leshchinskiy wrote:

Hmm, I should have investigated further before posting. That's a very Intel-specific reason, though. On the Sparc, for instance, it wouldn't make much sense to implement divInt# in terms of quotInt#, I think (but then again, we don't have a Sparc NCG).

Anyway, I don't think it's an inliner bug because divInt# and friends aren't marked INLINE. If nobody objects, I'll go ahead and add the INLINE pragmas at least. We lose the opportunity to have rewrite rules for divInt# this way, though, which is a pity.

After inlining you'll get constant folding for quotInt#, so it should be ok, no?

Cheers,
        Simon

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to