[PATCH] D27855: try to extend nonnull-ness of arguments from a callsite back to its parent function

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 19 17:24:31 PST 2016


spatel added inline comments.


================
Comment at: lib/Transforms/IPO/FunctionAttrs.cpp:586-587
     // For more details, see GlobalValue::mayBeDerefined.
     if (!F->hasExactDefinition())
       continue;
 
----------------
Side note for reference: this gets in the way of any hoped-for change with the dyn_cast example. Those functions (there are ~25 functions to inline underneath one call to dyn_cast) are marked "linkonce_odr", so we don't even consider them with this patch.


https://reviews.llvm.org/D27855





More information about the llvm-commits mailing list