[PATCH] D16616: Avoid inlining CallSites in unreachable-terminated block

Jun Bum Lim via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 26 17:43:12 PST 2016

junbuml created this revision.
junbuml added reviewers: mcrosier, manmanren, majnemer, hfinkel, davidxl, eraman.
junbuml added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.

If the call site or the normal destination of the invoke is an unreachable-terminated block, there is little point in inlining the call site unless there is literally zero cost. Unlike my previous change (D15289), this change specifically handle the call sites followed by unreachable in the same basic block for call or in the normal destination for the invoke. This change could be a reasonable first step to conservatively inline call sites leading to an unreachable-terminated block while BFI / BPI is not yet available in inliner.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16616.46084.patch
Type: text/x-patch
Size: 5171 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160127/edd6f2be/attachment.bin>

More information about the llvm-commits mailing list