public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/95913] New: Capturing lambdas inlining behavior changed in GCC 10.x
@ 2020-06-26 14:12 leonid.satanovsky at gmail dot com
  2020-06-26 17:26 ` [Bug ipa/95913] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: leonid.satanovsky at gmail dot com @ 2020-06-26 14:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95913

            Bug ID: 95913
           Summary: Capturing lambdas inlining behavior changed in GCC
                    10.x
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: leonid.satanovsky at gmail dot com
  Target Milestone: ---

Greetings!

There is a bug suspicion, and I wanted to report it by the following example.

https://godbolt.org/z/m6g3Ug  

GCCs 9.x and older inline capturing lambdas for the case in example even on -O1
GCC 10.1 always inlines only on -O3. On -O2 inlines it only if capturing lambda
is called < 3 times in a row.


Best regards, Leonid.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug ipa/95913] Capturing lambdas inlining behavior changed in GCC 10.x
  2020-06-26 14:12 [Bug other/95913] New: Capturing lambdas inlining behavior changed in GCC 10.x leonid.satanovsky at gmail dot com
@ 2020-06-26 17:26 ` pinskia at gcc dot gnu.org
  2020-06-29  9:45 ` marxin at gcc dot gnu.org
  2024-04-15 23:12 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2020-06-26 17:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95913

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most likely a heurstic changes caused this.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug ipa/95913] Capturing lambdas inlining behavior changed in GCC 10.x
  2020-06-26 14:12 [Bug other/95913] New: Capturing lambdas inlining behavior changed in GCC 10.x leonid.satanovsky at gmail dot com
  2020-06-26 17:26 ` [Bug ipa/95913] " pinskia at gcc dot gnu.org
@ 2020-06-29  9:45 ` marxin at gcc dot gnu.org
  2024-04-15 23:12 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-29  9:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95913

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-06-29
             Status|UNCONFIRMED                 |NEW
                 CC|                            |hubicka at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r10-3542-g0b92cf305dcf3438.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug ipa/95913] Capturing lambdas inlining behavior changed in GCC 10.x
  2020-06-26 14:12 [Bug other/95913] New: Capturing lambdas inlining behavior changed in GCC 10.x leonid.satanovsky at gmail dot com
  2020-06-26 17:26 ` [Bug ipa/95913] " pinskia at gcc dot gnu.org
  2020-06-29  9:45 ` marxin at gcc dot gnu.org
@ 2024-04-15 23:12 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-15 23:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95913

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 57954
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57954&action=edit
testcase

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-15 23:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-26 14:12 [Bug other/95913] New: Capturing lambdas inlining behavior changed in GCC 10.x leonid.satanovsky at gmail dot com
2020-06-26 17:26 ` [Bug ipa/95913] " pinskia at gcc dot gnu.org
2020-06-29  9:45 ` marxin at gcc dot gnu.org
2024-04-15 23:12 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).