[LLVMdev] Flag output used by two other nodes in DAG

Anton Korobeynikov anton at korobeynikov.info
Fri Oct 8 12:03:06 PDT 2010


> All right. Then what should the Selection DAG look like in a case where the
> flag value generated by one instruction is to be used as input to two other
> instructions?
It is impossible. You cannot "glue" two nodes to one. So, you need to
build a sequence of flag use / flag def nodes.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list