Make LoopUnswitch's cost estimation count Instructions, rather than
authorDan Gohman <gohman@apple.com>
Tue, 13 Oct 2009 17:50:43 +0000 (17:50 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 13 Oct 2009 17:50:43 +0000 (17:50 +0000)
commitb24f6c74957540a87b7475a1917e4a66f1634cf0
tree75caa7cf1486159a1e001990363aa6b55ef5d9ef
parent61358ab84304c641f5a071288d7cfbe3ddd10aa0
Make LoopUnswitch's cost estimation count Instructions, rather than
BasicBlocks, so that it doesn't blindly procede in the presence of
large individual BasicBlocks. This addresses a class of code-size
expansion problems.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83992 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp