Fix a case in SROA where lifetime intrinsics could inhibit alloca promotion. In
authorOwen Anderson <resistor@mac.com>
Thu, 7 Aug 2014 21:07:35 +0000 (21:07 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 7 Aug 2014 21:07:35 +0000 (21:07 +0000)
commitd4748bbd497b550a4e5db246c6708fcd6de542da
treed21832ac57c60f763f536e41088259630d9e8e7f
parent362510890ff2e1838450bb6ab91ef4e465c1d3a8
Fix a case in SROA where lifetime intrinsics could inhibit alloca promotion.  In
this case, the code path dealing with vector promotion was missing the explicit
checks for lifetime intrinsics that were present on the corresponding integer
promotion path.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215148 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SROA.cpp
test/Transforms/SROA/vector-lifetime-intrinsic.ll [new file with mode: 0644]