From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E894C3858419; Sun, 3 Mar 2024 03:36:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E894C3858419 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709437006; bh=iNP20aGYDfjWVJnou8nLz2TRhLXcL+UcriXSi9nI0/A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YGbsY0YHOrobEEP71c3h4BgDC7THD5DNEnJpRyNPlAnVn0rkND9a2kgp7/gDL/kwO jTflu6xj3ZAncbv9q+xtz4sCMKhgN1UKi6FdkyptM3GBzg/vcZ1UE9XSO9Js/u3Dq1 ZaFcLi7uL1C/4WeflhDZBgvfuPO0TNo6KzOVlMCA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/114215] GCC makes wrong decision for inline with -Os or -Oz to deal with trivial functions Date: Sun, 03 Mar 2024 03:36:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114215 --- Comment #5 from Andrew Pinski --- Still waiting on a full application rather then small benchmark type source= s. The heurstic here is that if you call operator[] multiple times, it might be better not to inline it for size reasons.=