[llvm-dev] Malloc null checks, why sometimes are moved and sometimes not?
Dávid Bolvanský via llvm-dev
llvm-dev at lists.llvm.org
Fri Apr 13 16:39:25 PDT 2018
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.llvm.org/pipermail/llvm-dev/attachments/20180414/edf41ed0/attachment.html>
More information about the llvm-dev
mailing list