Add an early implementation of a partial inlining pass. The idea behind this
authorOwen Anderson <resistor@mac.com>
Sun, 14 Jun 2009 08:26:32 +0000 (08:26 +0000)
committerOwen Anderson <resistor@mac.com>
Sun, 14 Jun 2009 08:26:32 +0000 (08:26 +0000)
commitca399021d47d640551eb786620bcd108e1758485
tree66e732b03800cc869151e0d3a802b78da4e78555
parentae9163f0e24d032f99b978d31ea810a1d441f7e2
Add an early implementation of a partial inlining pass. The idea behind this
is that, for functions whose bodies are entirely guarded by an if-statement, it
can be profitable to pull the test out of the callee and into the caller.

This code has had some cursory testing, but still has a number of known issues
on the LLVM test suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73338 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/LinkAllPasses.h
include/llvm/Transforms/IPO.h
lib/Transforms/IPO/PartialInlining.cpp [new file with mode: 0644]