Fix a problem I introduced in r187029 where we would over-eagerly
authorChandler Carruth <chandlerc@gmail.com>
Wed, 24 Jul 2013 12:12:17 +0000 (12:12 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 24 Jul 2013 12:12:17 +0000 (12:12 +0000)
commitb7f27824fb63210a67040affd43a82890b6784fb
treed32f32020ab2789240e3e626b238ba325ddf510d
parente3809eed34f000581a464689596eefde2a6d1f24
Fix a problem I introduced in r187029 where we would over-eagerly
schedule an alloca for another iteration in SROA. This only showed up
with a mixture of promotable and unpromotable selects and phis. Added
a test case for this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187031 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SROA.cpp
test/Transforms/SROA/phi-and-select.ll