[FunctionAttrs] Factor the logic to test for a known non-null return out
authorChandler Carruth <chandlerc@gmail.com>
Sun, 13 Sep 2015 08:17:14 +0000 (08:17 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 13 Sep 2015 08:17:14 +0000 (08:17 +0000)
commit1f97273f8fb2e51080ef2c7a9cd867d0d0ccf8a0
tree52af6f45ac5e596727c4d89510784c7be0ac1ddc
parentb21635658f4b9b7c7e28ff035e731903545646f0
[FunctionAttrs] Factor the logic to test for a known non-null return out
of a method and into a re-usable static helper. We can potentially use
this function from the implementation of a new pass manager oriented
version of the pass. Also add some better documentation of exactly what
the semantic model of this routine is (it isn't trivial) and use a more
modern naming convention for it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247524 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionAttrs.cpp