Christian Thalinger christian.thalinger at
Mon Dec 23 18:45:13 PST 2013

I’m not an expert on this but it seems that a NullCheckOp (or a NullCheckNode) only does an implicit null check; there is no branch information attached to it.

In order to do an explicit exception you’d need to add nodes to the graph that throw the exception.  Not sure if something like this exists already.

On Dec 23, 2013, at 1:24 PM, Deneau, Tom <tom.deneau at> wrote:

> I am trying to get null checks working on the hsail backend.
> What is required of NullCheckOp in the HSAILLIRGenerator?
> On Hsail, we can't support an implicit exception for this like amd64 does  so I think we would just want to end up with an explicit compare and branch if null to something that would be similar to the code emitted for a deoptimizing node.  How much of that does NullCheckOp have to do?
> -- Tom

More information about the graal-dev mailing list