[PATCH] D13354: Assign correct edge weights to unwind destinations when lowering invoke statement.
Cong Hou via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 10:36:32 PDT 2015
congh created this revision.
congh added reviewers: hans, davidxl.
congh added a subscriber: llvm-commits.
When lowering invoke statement, all unwind destinations are directly added as successors of call site block, and the weight of those new edges are not assigned properly. Actually, default weight 16 are used for those edges. This patch calculates the proper edge weights for those edges when collecting all unwind destinations.
http://reviews.llvm.org/D13354
Files:
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/X86/catchpad-weight.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13354.36168.patch
Type: text/x-patch
Size: 8380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151001/2cc6c72d/attachment.bin>
More information about the llvm-commits
mailing list