From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12olkn2041.outbound.protection.outlook.com [40.92.22.41]) by sourceware.org (Postfix) with ESMTPS id DB9AF3858C52 for ; Wed, 20 Jul 2022 08:11:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DB9AF3858C52 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SqbZtPto1oiH/2ChZagubzs1x112KJE8ijMIVgpe8xAgbrpHxAked4VeHBR1b1ZHoyj7XLIA/XHU/Zc6ujacgpcPDmNUPAp+HITJfVivY04AotGwLs63DJlTazYdmcPGyGIcrKI7fAXijrFwtbv//sofGPEPxAdgKPVToXviICKBf4C9cN23F+gvAKJH1kDUcwdtS48A7KShQd2b180kuVzGhkBKqOEq0R1ZKlPzGPJxkNtDfwJwgmBZmSrlrVjBDI7wlbHYmbvALteAjchLctzizmlaSXvjP1C0BGYJPVV+f8gV7+SseN3eT5QHMpnunv1D7I8HWaaDHpYiLdK8rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SaXvvlM9GO7HyN697yTVu+9PymQv8cqzxwG8TC+UWYc=; b=clRJJlcgF9dwOArpu9RVGiYCluxHQsqNuUsKon15owADDU1IJ8gRb0LXSPDhHRAhYaAfRgD9NvRw8hdufKNFXss7wxCeVaVeduxGpoVGBV7nEKCyG7OMTsyG1FkIPVwq9ETbeR5y8ljeV0Ub3sLV97h3vy8OZmDfqA8b1esbi6YwrrMoB4NpCTauDqDJPoDOSkHks37/XOkMZyj27hOhZgnX4XAPqfjJrdUGsxJKpfR1P6cENFDs9BNBzBVnGgy2mF/hdPsKrjZ1tHfG1RgCLNrV0JuF2YiJPPbB+utrZ5pHowf63NLxqqBPT+R2AvrW/NFqdohJYo6kv1cjsfEiAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DM8PR16MB4357.namprd16.prod.outlook.com (2603:10b6:8:30::8) by MWHPR16MB1423.namprd16.prod.outlook.com (2603:10b6:320:27::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.18; Wed, 20 Jul 2022 08:10:59 +0000 Received: from DM8PR16MB4357.namprd16.prod.outlook.com ([fe80::e5ef:7428:e6f1:7275]) by DM8PR16MB4357.namprd16.prod.outlook.com ([fe80::e5ef:7428:e6f1:7275%8]) with mapi id 15.20.5438.023; Wed, 20 Jul 2022 08:10:59 +0000 From: Edgar Mobile To: Navid Rahimi , "gcc-help@gcc.gnu.org" Subject: Re: Try to understand output of -fdump-ipa-inline Thread-Topic: Try to understand output of -fdump-ipa-inline Thread-Index: AQHYm3Z5ldXLF5KQhkmTIvEfKu/LZK2GA4y9gADkxk0= Date: Wed, 20 Jul 2022 08:10:58 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [AKt37gGqMefkBhlZYlTwyWf3nODMgeU3] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 33c07faa-768b-468d-be88-08da6a2760fa x-ms-traffictypediagnostic: MWHPR16MB1423:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uaUr9eK7A8VIeDQbyplpiOA4no68eswUw6FjcUtj/TqqaBhs1vQkjmlEx5wHoNIzicC7XCsUKE3C/lki1fGHhQGWBj0v2dnUKPPvsbBp6VW6FI1pZWXJl20QaJ3xoUYPHq8esoulQYHrhqwCOqb9eheMx4mVtIsu7p/vXryGMFSYNLSaLUHlBuAuPT2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Zjj8aH3q4etSNwoEk93nR1Xl9dxW7UzD9YWOAO?= =?iso-8859-1?Q?07s1?= MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-5ce7b.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR16MB4357.namprd16.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 33c07faa-768b-468d-be88-08da6a2760fa X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2022 08:10:58.9191 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR16MB1423 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2022 08:11:04 -0000 I tried to create a *.so example from it for which I literally copied the c= alling and called function. It is inlined correctly. In the original project, g++ seems to be determined to create a plt entry f= or the to-be-inlined function although I gave it the visibility=3Dhidden at= tribute (also -fvisibility=3Dhidden in the g++ parameters). Will a plt entry prevent a function from being inlined? Is there a way to find out why g++ creates a plt entry although I'm trying = to prevent this? Regards ________________________________ From: Navid Rahimi Sent: Tuesday, July 19, 2022 6:27 PM To: gcc-help@gcc.gnu.org ; Edgar Mobile Subject: Re: Try to understand output of -fdump-ipa-inline Have you tried to make a similar example? What I do in this situation is tr= y to replicate exact situation but in a smaller case. Inlining decision happens in multiple levels. It is hard to find out what i= s the exact reason this way. Just as experiment, try it with always_inline [1] too. 1. https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html Best wishes, Navid. ________________________________________ From: Gcc-help o= n behalf of Edgar Mobile via Gcc-help Sent: Tuesday, July 19, 2022 06:56 To: gcc-help@gcc.gnu.org Subject: [EXTERNAL] Try to understand output of -fdump-ipa-inline Greetings, I try to find out why a function (inline keyword, defined in header) is not= inlined. Example for -fdump-ipa-inline output: Considering void Vertex::update(const Data&)/5927 with 40 size to be inlined into void SomeClass::updatePoly(const Data&, Polyline&)/1118= 1 in /somepath/SomeClass.cpp:663 Estimated badness is -0.000083, frequency 4.69. The function is never inlined. unfortunately, the code is proprietary, so I= cannot post everything. Can anyone explain me the message above to find out why? Thanks