[Mono-devel-list] [PATCH] Constant folding signed div
Paolo Molaro
lupus at ximian.com
Mon Nov 29 09:30:23 EST 2004
On 11/29/04 Massimiliano Mantione wrote:
> > This needs to be forced in its own tree, but there is no good way to do it
> > when the code in cfold.c runs:-(
> > Maybe it's better to just introduce the OP_DIV_POWER2_IMM opcode
> > and let the backend code optionally implement it.
>
> Sorry but, why "This needs to be forced in its own tree"?
> Not that I don't agree, I just don't understand :-(
The code introduces basic blocks: the local register allocator
won't produce correct code in that case, unless that happens at
the end of an expression (which forcing a tree emission does).
This in one of the reasons the new register allocator is been designed:
the additional basic blocks will be tracked and considered.
lupus
--
-----------------------------------------------------------------
lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
More information about the Mono-devel-list
mailing list