[PATCH] D27855: [InstCombine] try to extend nonnull-ness of arguments from a callsite back to its parent function
David Majnemer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 16 12:02:33 PST 2016
majnemer added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:2779-2820
+/// If a callsite has arguments that are also arguments to the parent function,
+/// try to propagate attributes from the callsite's arguments to the parent's
+/// arguments.
+static Instruction *extendArgAttrsToCaller(CallSite &CS, DominatorTree &DT) {
+ // Make sure that this callsite is part of a function.
+ BasicBlock *BB = CS.getParent();
+ if (!BB)
----------------
Any chance this logic could live in `llvm::isKnownNonNullAt`
https://reviews.llvm.org/D27855
More information about the llvm-commits
mailing list