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)
commit8335a5724a352ce7ae44c5ca450f85fd2576fcf0
tree5f64b2f94274fea59f96d01f4d8e1857b052d7c0
parente71bd0c89bfe64fefb703c16397ad0e5debc7802
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!

llvm-svn: 225272
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/DebugInfo/X86/array2.ll
llvm/test/DebugInfo/X86/sroasplit-1.ll [new file with mode: 0644]
llvm/test/DebugInfo/X86/sroasplit-2.ll [new file with mode: 0644]
llvm/test/DebugInfo/X86/sroasplit-3.ll [new file with mode: 0644]