[Truffle] Eliminating Calls to Side-Effect Free Methods?

Stefan Marr java at stefan-marr.de
Wed Mar 12 18:42:31 UTC 2014


Hi Andreas:

On 12 Mar 2014, at 18:24, Andreas Woess <andreas.woess at jku.at> wrote:

> find here a proposed fix to the PE:
> https://gist.github.com/woess/d3276080dc18f8926f2f

Thanks. Not sure whether that’s your patch, or whether it is something in my code, but most benchmarks break with this error:

[truffle] opt fail         Method BubbleSort>>#$block method::/home/smarr/.local/SOM/Examples/Benchmarks//BubbleSort.som:34 at 33cb5951|Reason com.oracle.graal.nodes.util.GraphUtil$2: The location argument could not be resolved to a constant. 

Will try to look into it later tonight.

> and here a small patch for TruffleSOM:
> https://gist.github.com/woess/90ff49f009f182c5276e
> that gave me a nice speedup on your dispatch benchmark.

Is applied.

Thanks
Stefan


-- 
Stefan Marr
INRIA Lille - Nord Europe
http://stefan-marr.de/research/





More information about the graal-dev mailing list