[SROA] Fix PR24463, a crash I introduced in SROA by allowing it to
authorChandler Carruth <chandlerc@gmail.com>
Fri, 28 Aug 2015 09:03:52 +0000 (09:03 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 28 Aug 2015 09:03:52 +0000 (09:03 +0000)
commit9befb59470dddd7f9f684de8c4f48748e861fe32
treed721f55b194871946052218253df6a5143841ab7
parent3bc806de10a191250167348d0964dcc838d247e4
[SROA] Fix PR24463, a crash I introduced in SROA by allowing it to
handle more allocas with loads past the end of the alloca.

I suspect there are some related crashers with slightly different
patterns, but I'll fix those and add test cases as I find them.

Thanks to David Majnemer for the excellent test case reduction here.
Made this super simple to debug and fix.

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