Reapply: Teach SROA how to update debug info for fragmented variables.
authorAdrian Prantl <aprantl@apple.com>
Tue, 6 Jan 2015 17:14:10 +0000 (17:14 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 6 Jan 2015 17:14:10 +0000 (17:14 +0000)
commit46cb54c0fb39dd03fb30e3a1c36bdf88b31bca1e
treea37e61656627c1835ecd0c5ef5f66326c8d73e25
parentd682839830b44ee9296abbe06ff5106c82c09e0a
Reapply: Teach SROA how to update debug info for fragmented variables.
This also rolls in the changes discussed in http://reviews.llvm.org/D6766.
Defers migrating the debug info for new allocas until after all partitions
are created.

Thanks to Chandler for reviewing!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225272 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SROA.cpp
test/DebugInfo/X86/array2.ll
test/DebugInfo/X86/sroasplit-1.ll [new file with mode: 0644]
test/DebugInfo/X86/sroasplit-2.ll [new file with mode: 0644]
test/DebugInfo/X86/sroasplit-3.ll [new file with mode: 0644]