<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>I am not sure what situation is. Your c code in llvm travel as:</DIV>
<DIV> | clang | IR build | combine ... | isel | ... |<BR> c code -> IR -> DAG -> DAG -> DAG(machine relative) ----> machine code<BR> &nb!
sp; I II III<BR>situation I: you need to aviod 'select' in IR?<BR> -> Maybe you need to chang the 'clang';</DIV>
<DIV>situation II: you need to aviod 'select' DAG node?<BR> -> you can focuse on IR build; </DIV>
<DIV>situation III: you need to aviod 'select' machine instruction (your ISA relative)?<BR> -> you can add pattern for 'select' node, to map for your own instruction.<BR><BR><BR><BR><BR></DIV>
<DIV></DIV>
<DIV id="divNeteaseMailCard"></DIV>
<DIV><BR></DIV><PRE><BR>At 2013-04-15 00:05:07,"Dong Chen" <jameschennerd@gmail.com> wrote:
>hi Sam:
>thank you for your reply.
>but i have another question about this 'select' instruction.
>i think that in LLVM IR, i can use a branch and two seperate assignments to
>replace 'select' instruction(am i right?).
>so is there any compiling option to aviod generate 'select' instruction?
>
>
>
>--
>View this message in context: http://llvm.1065342.n5.nabble.com/llvm-select-instruction-tp56719p56728.html
>Sent from the LLVM - Dev mailing list archive at Nabble.com.
>_______________________________________________
>LLVM Developers mailing list
>LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
</PRE></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>