Cameron Zwarich 7fd94ea393 Only convert allocas to scalars if it is profitable. The profitability metric I
chose is having a non-memcpy/memset use and being larger than any native integer
type. Originally I chose having an access of a size smaller than the total size
of the alloca, but this caused some minor issues on the spirit benchmark where
SRoA runs again after some inlining.

This fixes <rdar://problem/8613163>.

llvm-svn: 127718
2011-03-16 00:13:44 +00:00
..
2011-03-11 21:52:04 +00:00
2011-01-14 07:46:33 +00:00
2011-03-07 21:28:14 +00:00
2010-09-02 22:38:56 +00:00
2011-03-07 22:43:45 +00:00
2011-02-18 05:05:01 +00:00
2010-08-03 16:19:16 +00:00