Reapply r186316 with a fix for one bug where the code could walk off the
authorChandler Carruth <chandlerc@gmail.com>
Thu, 18 Jul 2013 07:15:00 +0000 (07:15 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 18 Jul 2013 07:15:00 +0000 (07:15 +0000)
commitf7c45ce3f59d993b1b7f8edbe07304328ac71b12
treeb9e5e4403d3b76b7337f60514458402435923775
parent5b35d4459222f46000194102bf04d5102c6960cd
Reapply r186316 with a fix for one bug where the code could walk off the
end of a vector. This was found with ASan. I've had one other report of
a crasher, but thus far been unable to reproduce the crash. It may well
be fixed with this version, and if not I'd like to get more information
from the build bots about what is happening.

See r186316 for the full commit log for the new implementation of the
SROA algorithm.

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