InlineFunction can fail, for example when trying to inline vararg
fuctions. In those cases, we do not want to bump partial inlining
counters or set AnyInlined to true, because this could leave an unused
function hanging around.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Transforms/IPO/PartialInlining.cpp | ||
---|---|---|
933–934 | Move the opt remark down. |
Comment Actions
I've updated the patch to construct the remark before inlining, as the callsite gets erased by InlineFunction, but moved emission of the remark after the InlineFunction.
lib/Transforms/IPO/PartialInlining.cpp | ||
---|---|---|
933–934 | Done, thanks! |
Move the opt remark down.