[FunctionAttrs] Extract a helper function for the core logic used to
authorChandler Carruth <chandlerc@gmail.com>
Mon, 21 Sep 2015 17:39:41 +0000 (17:39 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 21 Sep 2015 17:39:41 +0000 (17:39 +0000)
commita3e49ea99afc3c9f43953bdc3b3bd77970ed510d
treed6ef9a4b9b758301d0e364d80de243cdcffa73be
parenteeec957a3db361f66f5d2a9c7c4dd29a81bb02a9
[FunctionAttrs] Extract a helper function for the core logic used to
evaluate whether 'readonly' or 'readnone' apply to a given function.
This both reduces indentation and will make it easy to share the logic
with a new pass manager implementation.

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