OSDN Git Service

* Pull out the meat of runOnModule into another function for clarity.
authorChris Lattner <sabre@nondot.org>
Fri, 8 Oct 2004 20:59:28 +0000 (20:59 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 8 Oct 2004 20:59:28 +0000 (20:59 +0000)
commita4be1dc0a192175bbc561a633c0b7197853e6a74
treeb6d92a9e45b9e54f9d13b0da805994e3bed6bea1
parent508540321bbe3fdfc2db286f281b3137a0e8717a
* Pull out the meat of runOnModule into another function for clarity.
* Do not lead dangling dead constants prevent optimization
* Iterate global optimization while we're making progress.

These changes allow us to be more aggressive, handling cases like
GlobalOpt/iterate.llx without a problem (turning it into 'ret int 0').

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