Displaying 1 result from an estimated 1 matches for "_11262_0".
2011 Dec 13
4
[LLVMdev] Failure to optimize ? operator
...*x*x+3*x+1;
if (x > 0)
return 0;
else
return y;
}
int f2(int x) {
int y = 5*x*x*x+2*x*x+3*x+1;
return x > 0 ? 0 : y;
}
================================================================
Output from llvm disassembler targeting LLVM assembly
; ModuleID = '/tmp/webcompile/_11262_0.bc'
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"
target triple = "x86_64-unknown-linux-gnu"
define i32 @f1(i32 %x) nounwind readnone {
; <label>:0
%...