search for: pr16938

Displaying 2 results from an estimated 2 matches for "pr16938".

Did you mean: pr14988
2013 Aug 20
0
[LLVMdev] Duplicate loading of double constants
On 18 August 2013 22:38, Eugene Toder <eltoder at gmail.com> wrote: > Hi, > > I found that in some cases llvm generates duplicate loads of double > constants, > e.g. > > $ cat t.c > double f(double* p, int n) > { > double s = 0; > if (n) > s += *p; > return s; > } > $ clang -S -O3 t.c -o - > ... > f:
2013 Aug 19
2
[LLVMdev] Duplicate loading of double constants
Hi, I found that in some cases llvm generates duplicate loads of double constants, e.g. $ cat t.c double f(double* p, int n) { double s = 0; if (n) s += *p; return s; } $ clang -S -O3 t.c -o - ... f: # @f .cfi_startproc # BB#0: xorps %xmm0, %xmm0 testl %esi, %esi je .LBB0_2 # BB#1: xorps