Where the BranchFolding pass removes a branch then adds another better branch,
authorBill Wendling <isanbard@gmail.com>
Wed, 7 Mar 2012 08:49:42 +0000 (08:49 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 7 Mar 2012 08:49:42 +0000 (08:49 +0000)
commit5b2749abf585f9e28656c289001c2327eed401af
tree7f7be8112f2bc5ebbb48089b898788c03d9bddf0
parent8c1161a262bb0195b47082ec04fa4398a1313ea1
Where the BranchFolding pass removes a branch then adds another better branch,
the DebugLoc information can be maintained throughout by grabbing the DebugLoc
before the RemoveBranch and then passing the result to the InsertBranch.
Patch by Andrew Stanford-Jason!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152212 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BranchFolding.cpp