[PATCH] D47988: [CodeGen] Emit MSVC funclet IR for Obj-C exceptions

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 12 14:16:05 PDT 2018


rnk added a comment.

In https://reviews.llvm.org/D47988#1127432, @smeenai wrote:

> Any idea why we would see inlining in one case and not the other? i686 vs. x86-64 doesn't make any difference, and neither does -Os vs. -O1 vs. -O2.


My theory is that the inliner is attempting to avoid inlining on cold codepaths that are post-dominated by unreachable. When you put an outer try around it, the function may continue by unwinding, so the inline cost analysis gives different results. Of course, that's all just a wild guess.


Repository:
  rC Clang

https://reviews.llvm.org/D47988





More information about the cfe-commits mailing list