[PATCH] D47895: llvm: Add support for "-fno-delete-null-pointer-checks"
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 11 10:41:25 PST 2022
xbolva00 added inline comments.
Herald added subscribers: jeroen.dobbelaere, ormris, ChuanqiXu, jdoerfert, asbirlea.
Herald added a project: LLVM.
================
Comment at: llvm/trunk/lib/Analysis/InlineCost.cpp:1999
+ // that does not have this attribute.
+ if (!Caller->nullPointerIsDefined() && Callee->nullPointerIsDefined())
+ return llvm::InlineCost::getNever();
----------------
Why not put it to functionsHaveCompatibleAttributes?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D47895/new/
https://reviews.llvm.org/D47895
More information about the llvm-commits
mailing list