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.
This commit is contained in:
Martin Jambor 2021-11-05 14:04:42 +01:00
parent 30b8ec68e2
commit ea42c80585
No known key found for this signature in database
GPG Key ID: BF63C1BC3FA43540
1 changed files with 0 additions and 2 deletions

View File

@ -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