Fix PR14212: For some strange reason I treated vectors differently from
authorChandler Carruth <chandlerc@gmail.com>
Tue, 30 Oct 2012 20:52:40 +0000 (20:52 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 30 Oct 2012 20:52:40 +0000 (20:52 +0000)
commit70dace3052984e843202ec98844a2a6636debb89
tree2a32dbbcbbc18876f946ba06d0f4d8d5ba48a208
parentdaeec8fad3a3038247df1e5081b74454e7ee9315
Fix PR14212: For some strange reason I treated vectors differently from
integers in that the code to handle split alloca-wide integer loads or
stores doesn't come first. It should, for the same reasons as with
integers, and the PR attests to that. Also had to fix a busted assert in
that this test case also covers.

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