[llvm-commits] PATCH: Add a 'swapSuccessors' method to BranchInst and use it to preserve branch profile metadata

Chandler Carruth chandlerc at google.com
Sun Oct 16 17:43:40 PDT 2011


Currently passes which swap operands of branch instructions don't also swap
the metadata associated with that branch. This patch adds a helper method to
make doing that easy, and teaches one part of InstCombine to use it. I'll be
auditing more and more places where we change the operands of branches to
update them to use this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111016/0dc00473/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swap-patch.diff
Type: text/x-patch
Size: 3181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111016/0dc00473/attachment.bin>


More information about the llvm-commits mailing list