Avoid calling use_size() which could (in theory) be expensive if the global
authorChris Lattner <sabre@nondot.org>
Sun, 10 Oct 2004 16:43:46 +0000 (16:43 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 10 Oct 2004 16:43:46 +0000 (16:43 +0000)
commit031955d4623193b1c4163bd43db0eaaf6b08c27b
tree5679ba8d6df1869e878c8c1e7fd05c447cf6cf3a
parentcbb9812d0df6b64d42c3b2687c877050612a7129
Avoid calling use_size() which could (in theory) be expensive if the global
has a large number of users.  Instead, just keep track of whether we're
making changes as we do so.

This patch has no functionlity changes.

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