[llvm] [Passes][Inliner] Handle optsize/minsize via attributes only (PR #190168)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 2 07:40:44 PDT 2026


mtrofin wrote:

> InlineParams already has separate threshold for OptSize/MinSize functions that get applied based on the corresponding function attributes. As such, we should not also be changing the DefaultThreshold based on the pipeline Os/Oz levels as well.

If I pass `-Os` to the compiler, will it apply those function attributes to all functions?

https://github.com/llvm/llvm-project/pull/190168


More information about the llvm-commits mailing list