Set proper debug location for branch added in BasicBlock::splitBasicBlock().
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 11 Jun 2015 18:25:54 +0000 (18:25 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 11 Jun 2015 18:25:54 +0000 (18:25 +0000)
commitbc482286fcf06ba573338c5712daac85eaf48722
tree9b4b20ef60575717e682385bbf065e2cf0118aa5
parent7356846f65b17760b5ef70e5e05ffed83366990f
Set proper debug location for branch added in BasicBlock::splitBasicBlock().

This improves debug locations in passes that do a lot of basic block
transformations. Important case is LoopUnroll pass, the test for correct
debug locations accompanies this change.

Test Plan: regression test suite

Reviewers: dblaikie, sanjoy

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10367

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239551 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/BasicBlock.cpp
test/Transforms/LoopUnroll/runtime-loop1.ll