[llvm-commits] [patch] BranchFolding debug infomation
Andrew Stanford-Jason
andrew at xmos.com
Fri Feb 24 06:31:34 PST 2012
This patch adds better retention of DebugLoc information during
BranchFolding.
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.
There is one new function:
static DebugLoc getBranchDL(MachineBasicBlock &MBB);
It is intended to extract the DebugLoc information from the latest
branching instruction in MBB. If there is no branching instructions then
returning a default DebugLoc is not a regression.
With this change it should be possible to maintain higher quality debug
information.
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BranchFolding.patch
Type: text/x-patch
Size: 4967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120224/15833f10/attachment.bin>
More information about the llvm-commits
mailing list