[PATCH] Make sure branch edge weights are not dropped in TailDuplicatePass

Akira Hatanaka ahatanak at gmail.com
Tue Feb 11 10:36:33 PST 2014


There are two lines in TailDuplication.cpp where edge weights are not
passed to MachineBasicBlock::addSuccessor, which results in the weights
being dropped from MachineBasicBlock. The attached patch fixes this bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140211/35368935/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: taildup-branch-weight.patch
Type: application/octet-stream
Size: 4168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140211/35368935/attachment.obj>


More information about the llvm-commits mailing list