search for: mjaupu

Displaying 4 results from an estimated 4 matches for "mjaupu".

Did you mean: mampu
2018 Apr 13
2
Malloc null checks, why sometimes are moved and sometimes not?
Hello, Here is simple test code: https://godbolt.org/g/mjAUpu LLVM generally assumes that malloc never fails. But I dont understand difference between these two example functions - and why null check was not removed in f1, since in f2 it was removed. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llv...
2018 Apr 13
0
Malloc null checks, why sometimes are moved and sometimes not?
On 4/13/2018 6:39 PM, Dávid Bolvanský via llvm-dev wrote: > > Here is simple test code: > https://godbolt.org/g/mjAUpu > > LLVM generally assumes that malloc never fails. > > But I dont understand difference between these two example functions - > and why null check was not removed in f1, since in f2 it was removed. That's because the return value from malloc is discarded in f2. In that case...
2018 Apr 14
1
Malloc null checks, why sometimes are moved and sometimes not?
2018-04-14 7:51 GMT+08:00 Krzysztof Parzyszek via llvm-dev <llvm-dev at lists.llvm.org>: > On 4/13/2018 6:39 PM, Dávid Bolvanský via llvm-dev wrote: >> >> >> Here is simple test code: >> https://godbolt.org/g/mjAUpu >> >> LLVM generally assumes that malloc never fails. >> >> But I dont understand difference between these two example functions - and >> why null check was not removed in f1, since in f2 it was removed. > > > That's because the return value from malloc is...
2018 Apr 18
1
Malloc null checks, why sometimes are moved, and sometimes not?
...On 4/14/2018 3:09 AM, 陳韋任 wrote: >> 2018-04-14 7:51 GMT+08:00 Krzysztof Parzyszek via llvm-dev >> <llvm-dev at lists.llvm.org>: >>> On 4/13/2018 6:39 PM, Dávid Bolvanský via llvm-dev wrote: >>>> Here is simple test code: >>>> https://godbolt.org/g/mjAUpu >>>> >>>> LLVM generally assumes that malloc never fails. >>>> >>>> But I dont understand difference between these two example functions - and >>>> why null check was not removed in f1, since in f2 it was removed. >>> That's b...