[PATCH] D27855: [InstCombine] 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
Sun Dec 18 15:05:43 PST 2016

spatel updated this revision to Diff 81896.
spatel added a comment.

Patch updated based on Sanjoy's suggestions:

1. Pass CallSite by value.
2. Change parent null checks to assert.
3. Use std::all_of()
4. Simplify logic for propagation of null attribute.
5. Add test case with 'readonly' call to show it is ok to propagate nonnull even if the call with nonnull is not first.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27855.81896.patch
Type: text/x-patch
Size: 7857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161218/b64df980/attachment.bin>

More information about the llvm-commits mailing list