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)
commit58e25d390542978c93ce425410eec0278a401624
tree338a1dc68cd38efcdb02421fe3c7051e9eb2f914
parent8cfb43f73b23715c6acc14b13178c3f9a4b9edab
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.

llvm-svn: 187031
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/Transforms/SROA/phi-and-select.ll