Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [omr-dev] Help needed - what is wrong with this IL?

Hi Andrew,

On 25 June 2018 at 13:50, Andrew Craik <ajcraik@xxxxxxxxxx> wrote:
> Thanks for sending the log through. I think the error message from the validator is being a little misleading - the reference counter for n161n in your log is 2 (the rc=2 on the lines where that node is printed in the trees). The node is only referenced by one parent and so the reference count should be 1. The error message you are getting is triggered when the end of the basic block is reached the node's ref count has not reached zero - ie the count suggests there is a future use outside of the block which would be illegal.
>

Many thanks for the insight. I will again check if I am doing
something wrong but given that switching the instruction to another
cmp opcode makes it work (all else being same) I don't think my code
is causing the IL to be corrupted as above.

Do you know why the compiler is changing the cmpeq opcode to cmpne ?
It seems that some transformation is happening - even before the
initial tree is output to the log.

I will re-examine my code and also try to reproduce this issue with a
standalone test case.

Thanks and Regards
Dibyendu


Back to the top