]> granicus.if.org Git - llvm/commit
Merge debug info when hoist then-else code to if.
authorDehao Chen <dehao@google.com>
Wed, 16 Aug 2017 01:55:26 +0000 (01:55 +0000)
committerDehao Chen <dehao@google.com>
Wed, 16 Aug 2017 01:55:26 +0000 (01:55 +0000)
commite5914dd1a35ed714e6235157db5f4d72f78319fa
tree56186cc861e60f37c5a76bb8399fc64fc68e68c9
parent9689681e1bdb4cecda910e6ddc0029e387286431
Merge debug info when hoist then-else code to if.

Summary: When we move then-else code to if, we need to merge its debug info, otherwise the hoisted instruction may have inaccurate debug info attached.

Reviewers: aprantl, probinson, dblaikie, echristo, loladiro

Reviewed By: aprantl

Subscribers: sanjoy, llvm-commits

Differential Revision: https://reviews.llvm.org/D36778

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