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:
parent
30b8ec68e2
commit
ea42c80585
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue