commit | 5b2749abf585f9e28656c289001c2327eed401af | [log] [tgz] |
---|---|---|
author | Bill Wendling <isanbard@gmail.com> | Wed Mar 07 08:49:42 2012 +0000 |
committer | Bill Wendling <isanbard@gmail.com> | Wed Mar 07 08:49:42 2012 +0000 |
tree | 7f7be8112f2bc5ebbb48089b898788c03d9bddf0 | |
parent | 8c1161a262bb0195b47082ec04fa4398a1313ea1 [diff] |
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