Factor the logic for testing whether a basic block is viable for code
authorChandler Carruth <chandlerc@gmail.com>
Thu, 3 May 2012 22:26:53 +0000 (22:26 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 3 May 2012 22:26:53 +0000 (22:26 +0000)
commit9f7af7b74892e5479e26ab535c9a76131e1947c3
tree30201c77e9623debc534e82068795aa57307ac85
parentcb348b9b45025393ec5b28eac8bb6773a9b603f6
Factor the logic for testing whether a basic block is viable for code
extraction into a public interface. Also clean it up and apply it more
consistently such that we check for landing pads *anywhere* in the
extracted code, not just in single-block extraction.

This will be used to guide decisions in passes that are planning to
eventually perform a round of code extraction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156114 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/FunctionUtils.h
lib/Transforms/Utils/CodeExtractor.cpp