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

Andreas Woess andreas.woess at jku.at
Wed Mar 12 19:14:32 UTC 2014


That's an indicator that a FrameSlot is not truly constant.
-G:+DumpOnError should provide more context. My first suspicion would be
SBlock.outerSelfSlot.

- andreas

On 2014-03-12 19:42, Stefan Marr wrote:
> 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
>
>



More information about the graal-dev mailing list