Fix a secondary bug I introduced while fixing the first part of PR14478.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 17 Dec 2012 14:03:01 +0000 (14:03 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 17 Dec 2012 14:03:01 +0000 (14:03 +0000)
commit8bbff2348d378192b332db38394498d83ed4feeb
tree8f45e6b62c9f5f50c1452079c9522dcd6889ac55
parent6e43b7f6b20b39b041cf24d732ddb802bbd6471a
Fix a secondary bug I introduced while fixing the first part of PR14478.

The first half of fixing this bug was actually in r170328, but was
entirely coincidental. It did however get me to realize the nature of
the bug, and adapt the test case to test more interesting behavior. In
turn, that uncovered the rest of the bug which I've fixed here.

This should fix two new asserts that showed up in the vectorize nightly
tester.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170333 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SROA.cpp
test/Transforms/SROA/vector-promotion.ll