public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4938] ipa: Do not require RECORD_TYPE for ancestor jump functions
@ 2021-11-05 13:31 Martin Jambor
  0 siblings, 0 replies; only message in thread
From: Martin Jambor @ 2021-11-05 13:31 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ea42c80585b831fc4f7a0b2576a3d8d3244d8d32

commit r12-4938-gea42c80585b831fc4f7a0b2576a3d8d3244d8d32
Author: Martin Jambor <mjambor@suse.cz>
Date:   Fri Nov 5 14:04:42 2021 +0100

    ipa: Do not require RECORD_TYPE for ancestor jump functions
    
    The check this patch removes has remained from times when ancestor
    jump functions have been only used for devirtualization and also
    contained BINFOs.  It is not necessary now and should have been
    removed long time ago.
    
    gcc/ChangeLog:
    
    2021-11-04  Martin Jambor  <mjambor@suse.cz>
    
            * ipa-prop.c (compute_complex_assign_jump_func): Remove
            unnecessary check for RECORD_TYPE.

Diff:
---
 gcc/ipa-prop.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 443f21ce61b..e85df0971fc 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -1421,8 +1421,6 @@ compute_complex_assign_jump_func (struct ipa_func_body_info *fbi,
   if (TREE_CODE (op1) != ADDR_EXPR)
     return;
   op1 = TREE_OPERAND (op1, 0);
-  if (TREE_CODE (TREE_TYPE (op1)) != RECORD_TYPE)
-    return;
   base = get_ref_base_and_extent_hwi (op1, &offset, &size, &reverse);
   offset_int mem_offset;
   if (!base


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-05 13:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-05 13:31 [gcc r12-4938] ipa: Do not require RECORD_TYPE for ancestor jump functions Martin Jambor

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