LICM shouldn't sink/delete debug information. Fix this and add a testcase.
authorTorok Edwin <edwintorok@gmail.com>
Sun, 11 Oct 2009 19:15:54 +0000 (19:15 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Sun, 11 Oct 2009 19:15:54 +0000 (19:15 +0000)
commit9289ae85b41eef62ae1fadb93e99d33f723fb682
tree9a453091068a9034cb4951b746ee215a16488a09
parent95eb470ce184e309082f24a35c19bf1de7bf10b9
LICM shouldn't sink/delete debug information. Fix this and add a testcase.
For now the metadata of sinked/hoisted instructions is still wrong, but that'll
be fixed when instructions will have debug metadata directly attached.

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