[Mono-devel-list] [PATCH] Constant folding signed div

Ben Maurer bmaurer at ximian.com
Tue Nov 23 15:10:10 EST 2004


> Hi,
>
> This patch tries to implement signed div folding via a burg rule.
>
> The reason why I say tries is because I have only tested the patch on
> x86 (only platform I have access to) but it should work on all platforms
> because it uses ops that is needed on all platforms. But to be sure the
> define MONO_ARCH_SUPPORT_DIV_CFOLD needs to define to enable this patch,
> when all platforms have been tested alt. fixed we can remove this
> define.

Havent we gotten bugs before with branches inside burg rules due to
regalloc? How does this avoid them?

Also, gcc generates some nice code using cmov, branchless. What does the
intel c++ compiler generate?

-- Ben






More information about the Mono-devel-list mailing list