Fix another SROA crasher, PR14601.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 17 Dec 2012 18:48:07 +0000 (18:48 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 17 Dec 2012 18:48:07 +0000 (18:48 +0000)
commitb0de1e31d11056037c4db3e2ecfe1547e85c3e1c
tree3565004b2e1a2f4bb5e232bdd510a90465586383
parent788221398a2cdb219c37625b5176211e7c7d44a6
Fix another SROA crasher, PR14601.

This was a silly oversight, we weren't pruning allocas which were used
by variable-length memory intrinsics from the set that could be widened
and promoted as integers. Fix that.

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