search for: anonw

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

Did you mean: anon
2012 Nov 16
0
[LLVMdev] Is this a missed (simple) optimization?
Hi, If the function was called Test(&B) then the first store would affect the second load. Tim. On Fri, Nov 16, 2012 at 11:58 AM, AnonW <wayne.phillips at gmail.com> wrote: > I think this is a missed optimization, but maybe I'm missing some significant > piece of knowledge(!) as to why this might not be optimizable :) Test > case... > > int A; // some global > int B; // some global > >...
2012 Nov 16
3
[LLVMdev] Is this a missed (simple) optimization?
I think this is a missed optimization, but maybe I'm missing some significant piece of knowledge(!) as to why this might not be optimizable :) Test case... int A; // some global int B; // some global void Test(int *Out) { *Out = A; // Can't this be optimized away? *Out = B; }; The LLVM backend (tested 3.1 and 3.0 online demo) doesn't optimize