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)
commite3f4119b064da4bad36bb3f1b60c77e0ccef3081
treeaab79250cbb5500b21622a50782f9c9bb8ef5564
parentbeea120d6e10fa22fff7fe94bc961700d631dcba
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.

llvm-svn: 170353
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/Transforms/SROA/basictest.ll