Change the RaiseAllocations pass to be a Pass instead of a BasicBlock pass.
authorChris Lattner <sabre@nondot.org>
Mon, 1 Sep 2003 03:14:56 +0000 (03:14 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Sep 2003 03:14:56 +0000 (03:14 +0000)
commit2dbfa03fd8554d9045a95d3297a5d4164bddf128
treef17a053a1bfcecc235bf1bc25c2b032e0b769116
parent2757af2d47ea633d4cdb7bd1b12850e975a49bdf
Change the RaiseAllocations pass to be a Pass instead of a BasicBlock pass.
This makes it more efficient: it doesn't have to scan the whole program, so
it performs work proportional to the number of malloc/free calls in the
program, not the size of the program.

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