search for: runonalloca

Displaying 3 results from an estimated 3 matches for "runonalloca".

2016 Mar 18
4
Redundant load in llvm's codegen compares to gcc when accessing escaped pointer?
...of object pointed to, and the address of an object after the end of its lifetime." 2. We are trying to preserve 1st load and remove other loads now, because our test pattern can not get rid of "-fno-strict-aliasing", and additional loads hurt performance. We did some change in SROA::runOnAlloca, we try to do something like this: void qux(PB* _c) { PB* c; <= insert this for original code bar(&_c); c = _c; <= insert this for original code c->f1_ = 0; c->f2_ = 0.f; } Any opinions please let us know. Thanks! CY On Fri, Mar 18, 2016 at 11:24 PM, Da...
2016 Mar 19
2
Redundant load in llvm's codegen compares to gcc when accessing escaped pointer?
...object after the >> end of its lifetime." >> >> 2. We are trying to preserve 1st load and remove other loads now, because >> our test pattern can not get rid of "-fno-strict-aliasing", and additional >> loads hurt performance. We did some change in SROA::runOnAlloca, we try to >> do something like this: >> >> void qux(PB* _c) { >> PB* c; <= insert this for original code >> bar(&_c); >> >> c = _c; <= insert this for original code >> c->f1_ = 0; >> c->f2_ = 0.f; >&g...
2016 Mar 18
3
Redundant load in llvm's codegen compares to gcc when accessing escaped pointer?
On 2016.03.17 at 16:35 -0700, Chris Lattner via llvm-dev wrote: > > > On Mar 15, 2016, at 7:58 AM, Chuang-Yu Cheng via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > > > Hi, > > > > Please look at this c code: > > > > typedef struct _PB { > > void* data; /* required.*/ > > int f1_; > > float f2_; > > } PB;