On Sun, 2009-06-28 at 21:04 +0200, Tomek Grabiec wrote:
> The logic stays the same, but to be correct with the comments EXPR_BINOP
> should be put together with expressions which are always assumed to have
> side effects. That's beacuse many arithmetic operations store the
> result in the left child expression thus preventing expression reuse.
> 
> Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>

Well, we we could just

  return expr_is_pure(left) && expr_is_pure(right)

there if we wanted to. Anyway, I applied the patch as an obvious fix.
Thanks!

                        Pekka


------------------------------------------------------------------------------
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to