[LLVMdev] llvm 'select' instruction
lyr338
lyr338 at 163.com
Sat Apr 20 06:24:04 PDT 2013
I am not sure what situation is. Your c code in llvm travel as:
| clang | IR build | combine ... | isel | ... |
c code -> IR -> DAG -> DAG -> DAG(machine relative) ----> machine code
I II III
situation I: you need to aviod 'select' in IR?
-> Maybe you need to chang the 'clang';
situation II: you need to aviod 'select' DAG node?
-> you can focuse on IR build;
situation III: you need to aviod 'select' machine instruction (your ISA relative)?
-> you can add pattern for 'select' node, to map for your own instruction.
At 2013-04-15 00:05:07,"Dong Chen" <jameschennerd at 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 at cs.uiuc.edu http://llvm.cs.uiuc.edu
>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130420/c9300c6a/attachment.html>
More information about the llvm-dev
mailing list