Fix CountCodeReductionForAlloca to more accurately represent what SROA can and
authorNick Lewycky <nicholas@mxc.ca>
Fri, 20 Jan 2012 08:35:20 +0000 (08:35 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 20 Jan 2012 08:35:20 +0000 (08:35 +0000)
commit38b6d9dd22e3989d8d9a1b9916df13b7976a0a85
tree69a1b9827c98d2772f895aef1f7ea3ae11a19900
parentb5c26ef9da16052597d59a412eaae32098aa1be0
Fix CountCodeReductionForAlloca to more accurately represent what SROA can and
can't handle. Also don't produce non-zero results for things which won't be
transformed by SROA at all just because we saw the loads/stores before we saw
the use of the address.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148536 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InlineCost.cpp
test/Transforms/Inline/alloca-bonus.ll [new file with mode: 0644]