[LLVMdev] Order of code generation

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Mon Aug 8 12:13:48 PDT 2011


On 08/06/2011 02:40 AM, Sanjoy Das wrote:
> Hi!
>
> I have a DAG (attached), which, according to me, should result in the
> code for coroutine_make be generated _before_ the ret.
>
> However, it seems that the corresponding EmitInstrWithCustomInserter is
> being called /after/ the RET instruction has already been emitted.

That is strange, from the dump it looks like all the chain edges are there.

What is the MI dump you get for this BB just after instruction selection?

> Thanks!

Cheers,
Rafael



More information about the llvm-dev mailing list