public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/91771] Optimization fails to inline final override.
       [not found] <bug-91771-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-03 16:29 ` pinskia at gcc dot gnu.org
  2021-08-03 16:32 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-03 16:29 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2019-09-16 00:00:00         |2021-8-3
           Severity|normal                      |enhancement

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

* [Bug ipa/91771] Optimization fails to inline final override.
       [not found] <bug-91771-4@http.gcc.gnu.org/bugzilla/>
  2021-08-03 16:29 ` [Bug ipa/91771] Optimization fails to inline final override pinskia at gcc dot gnu.org
@ 2021-08-03 16:32 ` pinskia at gcc dot gnu.org
  2021-08-03 16:34 ` pinskia at gcc dot gnu.org
  2022-08-12  7:15 ` yinyuefengyi at gmail dot com
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-03 16:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The other thing to note is that for "d.do_foo", the front-end decides it is
direct call to Derived::do_foo and IPA is not involved there.

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

* [Bug ipa/91771] Optimization fails to inline final override.
       [not found] <bug-91771-4@http.gcc.gnu.org/bugzilla/>
  2021-08-03 16:29 ` [Bug ipa/91771] Optimization fails to inline final override pinskia at gcc dot gnu.org
  2021-08-03 16:32 ` pinskia at gcc dot gnu.org
@ 2021-08-03 16:34 ` pinskia at gcc dot gnu.org
  2022-08-12  7:15 ` yinyuefengyi at gmail dot com
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-03 16:34 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |barry.revzin at gmail dot com

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 89989 has been marked as a duplicate of this bug. ***

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

* [Bug ipa/91771] Optimization fails to inline final override.
       [not found] <bug-91771-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-08-03 16:34 ` pinskia at gcc dot gnu.org
@ 2022-08-12  7:15 ` yinyuefengyi at gmail dot com
  3 siblings, 0 replies; 4+ messages in thread
From: yinyuefengyi at gmail dot com @ 2022-08-12  7:15 UTC (permalink / raw)
  To: gcc-bugs

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

Xionghu Luo (luoxhu at gcc dot gnu.org) <yinyuefengyi at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yinyuefengyi at gmail dot com

--- Comment #4 from Xionghu Luo (luoxhu at gcc dot gnu.org) <yinyuefengyi at gmail dot com> ---
Just curious about the 021t.ssa dump...


int f (struct Derived & d)
{
  struct Base * _1;  
  int _5;
  int _6;

  <bb 2> :
  _1 = &d_2(D)->D.2395;
  _5 = Base::foo (_1, 40);
  _6 = _5;
  return _6;

}


d_2 is a reference to "struct Derived" type instance, so is it an unnecessary
type promotion of promoting type "_1" to "struct Base *"?  Another thing to be
noted is early inline pass inlined Base::foo into f, but it failed to
devirtualize the virtual call in it, is it possible to devirt the call if
"struct Derived * _1" is produced in ssa pass?

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

end of thread, other threads:[~2022-08-12  7:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-91771-4@http.gcc.gnu.org/bugzilla/>
2021-08-03 16:29 ` [Bug ipa/91771] Optimization fails to inline final override pinskia at gcc dot gnu.org
2021-08-03 16:32 ` pinskia at gcc dot gnu.org
2021-08-03 16:34 ` pinskia at gcc dot gnu.org
2022-08-12  7:15 ` yinyuefengyi at gmail dot com

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).