Displaying 3 results from an estimated 3 matches for "tp56719p56726".
Did you mean:
tp56719p56728
2013 Apr 14
0
[LLVMdev] llvm 'select' instruction
Hi Dong,
try turning optimizations on. I get the select then:
> └─[$]› echo 'int min(int a, int b) { return a < b ? a : b; }' | clang -xc -O1 -S -emit-llvm -o - -
> ; ModuleID = '-'
> target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
>
2013 Apr 14
1
[LLVMdev] llvm 'select' instruction
...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-tp56719p56726.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
2013 Apr 14
8
[LLVMdev] llvm 'select' instruction
hello guys:
i am thinking about what kind of C instructions can turn into llvm IR
'select' instruction.
i tried "d=a?b:c" and compiled it using clang, i still didn't get 'select'
is there anybody who knows this?
thank you
--
View this message in context: http://llvm.1065342.n5.nabble.com/llvm-select-instruction-tp56719.html
Sent from the LLVM - Dev mailing list