[llvm-dev] General question about enabling partial inlining

Xinliang David Li via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 3 12:22:22 PDT 2017


On Tue, Oct 3, 2017 at 9:21 AM, Jun Lim via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi Graham,
>
>
>
> Thanks for sharing this.  Are you planning on enabling the pass only on
> PGO? Even in non-PGO, I noticed some performance gains when we are
> aggressive in partially inlining the early return part, especially when the
> callee spill CSRs in the entry block. At a high level, I have two
> questions:
>
>    1. What is the main obstacle that prevent the pass from being enabled
>    by default?
>    2. Would it make sense to give some bonus in the cost model when we
>    detect the possibility of spilling CSRs in the entry block?
>
> More enhanced shrink-wrapping will probably take care of this, so using
partial inlining to do that seems like a wrong motivation :)

David



>
>    1.
>
>
>
> Thanks,
>
> Jun
>
> *From:* Graham Yiu [mailto:gyiu at ca.ibm.com]
> *Sent:* Tuesday, October 3, 2017 11:08 AM
> *To:* junbuml at codeaurora.org
> *Cc:* llvm-dev at lists.llvm.org
> *Subject:* Re: [llvm-dev] General question about enabling partial inlining
>
>
>
> Hi Jun,
>
> We're actually looking at enhancing the partial inlining pass right now
> (see http://lists.llvm.org/pipermail/llvm-dev/2017-August/116515.html)
>
> We'd be interested in turning on the pass by default some time in the
> future, if our enhancements prove beneficial.
>
> Cheers,
>
> Graham Yiu
> LLVM Compiler Development
> IBM Toronto Software Lab
> Office: (905) 413-4077 C2-707/8200/Markham
> Email: gyiu at ca.ibm.com
>
> [image: Inactive hide details for via llvm-dev ---09/13/2017 01:12:02
> PM---Hi, I noticed some performance gains in some spec benchmarks]via
> llvm-dev ---09/13/2017 01:12:02 PM---Hi, I noticed some performance gains
> in some spec benchmarks without
>
> From: via llvm-dev <llvm-dev at lists.llvm.org>
> To: llvm-dev at lists.llvm.org
> Date: 09/13/2017 01:12 PM
> Subject: [llvm-dev] General question about enabling partial inlining
> Sent by: "llvm-dev" <llvm-dev-bounces at lists.llvm.org>
> ------------------------------
>
>
>
>
> Hi,
>
> I noticed some performance gains in some spec benchmarks without
> significant code size bloat when aggressively performing partial
> inlining, especially when the original callee spill CSRs in the entry
> block. I guess the partial inlining is not enabled mainly due to the
> code size. Is there any other issue which prevent the pass from being
> enabled? Do we have any plan or any on-going works to enable partial
> inlining ?
> Thanks,
> Jun
>
> --
> Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm
> Technologies, Inc.
> Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a
> Linux Foundation Collaborative Project.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.
> llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=DwIGaQ&
> c=jf_iaSHvJObTbx-siA1ZOg&r=4ST7e3kMd0GTi3w9ByK5Cw&m=zEValqMYe9FvZqI-
> GQUgWPmVUgbEq8OBAjTrBjz9xhY&s=1h4Cw3vDlJBIknkn0Ts3R_e3PU64h_
> dyvEkyCdonAVo&e=
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171003/f0436f94/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171003/f0436f94/attachment.gif>


More information about the llvm-dev mailing list