Live code elimination problem in code generation

Hello. :slight_smile:

I’ve met a problem that eliminates a live code in code generation phase.

The initially generated code is shown as follows (as a pseudo code):
( Before pseudo-code expansion. )

I assume you have your own target? I haven’t seen this happening with one of the standard targets.

Your analysis is correct, SELECT_CC shouldn’t be scheduled there.

Normally, LowerCall will create glue edges between the copyToReg SelectionDAG nodes and the CALL node. Is your target not doing that?

/jakob

Dear Oleson,

Due to your help, I found the bug in my own target.
I missed out a glue option of the JumpLink instruction in my InstrInfo.td.

Thank you so much ! :slight_smile:

Hae-woo Park

2011/10/15 Jakob Stoklund Olesen <stoklund@2pi.dk>