Bill Wendling via llvm-dev
2018-Nov-28 19:39 UTC
[llvm-dev] LTO and Inlining and Stack Frame Size
Inlining is more aggressive with LTO. This could lead to stack frame sizes growing. However, sometimes you're working with software that is sensitive to stack sizes and would like to keep things within a certain limit (say 8K). Is there a way to achieve this with clang's LTO (or indeed its inliner in general)? -bw -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181128/6683ffb9/attachment.html>
Teresa Johnson via llvm-dev
2018-Nov-29 01:46 UTC
[llvm-dev] LTO and Inlining and Stack Frame Size
This is probably better controlled in the inliner, and there are internal options there already for controlling various size thresholds. LTO doesn't directly control inlining directly, it just provides a bigger scope. +Easwaran who works on the inliner and might be able to point you in the right direction. Teresa On Wed, Nov 28, 2018 at 11:40 AM Bill Wendling via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Inlining is more aggressive with LTO. This could lead to stack frame sizes > growing. However, sometimes you're working with software that is sensitive > to stack sizes and would like to keep things within a certain limit (say > 8K). Is there a way to achieve this with clang's LTO (or indeed its inliner > in general)? > > -bw > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- Teresa Johnson | Software Engineer | tejohnson at google.com | -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181128/e6910520/attachment.html>
Bill Wendling via llvm-dev
2018-Nov-29 05:46 UTC
[llvm-dev] LTO and Inlining and Stack Frame Size
Thanks, Teresa. I'll look at some of those options. On Wed, Nov 28, 2018 at 5:46 PM Teresa Johnson <tejohnson at google.com> wrote:> This is probably better controlled in the inliner, and there are internal > options there already for controlling various size thresholds. LTO doesn't > directly control inlining directly, it just provides a bigger > scope. +Easwaran who works on the inliner and might be able to point you in > the right direction. > > Teresa > > On Wed, Nov 28, 2018 at 11:40 AM Bill Wendling via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Inlining is more aggressive with LTO. This could lead to stack frame >> sizes growing. However, sometimes you're working with software that is >> sensitive to stack sizes and would like to keep things within a certain >> limit (say 8K). Is there a way to achieve this with clang's LTO (or indeed >> its inliner in general)? >> >> -bw >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> > > > -- > Teresa Johnson | Software Engineer | tejohnson at google.com | >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181128/32858577/attachment.html>