In mem2reg, for all alloca/stores that get promoted where the alloca has an associate...
authorVictor Hernandez <vhernandez@apple.com>
Tue, 26 Jan 2010 02:42:15 +0000 (02:42 +0000)
committerVictor Hernandez <vhernandez@apple.com>
Tue, 26 Jan 2010 02:42:15 +0000 (02:42 +0000)
commitb9768b0731f8b9a10fd2ee6bd1699ae8c02fc78c
tree196387bc28c03bbf88249ed7a108ccf43ddb2d12
parente685f230b6f4f7cd65f45e07cbbbcaa4d66a1cea
In mem2reg, for all alloca/stores that get promoted where the alloca has an associated llvm.dbg.declare instrinsic, insert an llvm.dbg.var intrinsic before each store.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94493 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
test/Transforms/Mem2Reg/ConvertDebugInfo.ll [new file with mode: 0644]