Indvars: guard against exponential behavior in isHighCostExpansion.
authorAndrew Trick <atrick@apple.com>
Mon, 12 Dec 2011 22:46:16 +0000 (22:46 +0000)
committerAndrew Trick <atrick@apple.com>
Mon, 12 Dec 2011 22:46:16 +0000 (22:46 +0000)
commit86d34100cf164f6ba5c0c2344b7dff86cc0a0980
tree10b2ec58c1e4d24ea8ee218d5283332a10f919bc
parente5609abccbd329ef4b07270c8b71a5b59cfe8bce
Indvars: guard against exponential behavior in isHighCostExpansion.

This should always be done as a matter of principal. I don't have a
case that exposes the problem. I just noticed this recently while
scanning the code and realized I meant to fix it long ago.

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