2019-11-14 Martin Liska <mliska@suse.cz>
* ipa-icf-gimple.c (func_checker::hash_operand): Improve
func_checker::hash_operand by handling of FIELD_DECLs.
From-SVN: r278208
2019-11-14 Martin Liska <mliska@suse.cz>
+ * ipa-icf-gimple.c (func_checker::hash_operand): Improve
+ func_checker::hash_operand by handling of FIELD_DECLs.
+
+2019-11-14 Martin Liska <mliska@suse.cz>
+
* ipa-icf-gimple.h (func_checker::func_checker): Add
default constructor.
* ipa-icf.c (sem_function::init): Make operand_equal_p
case CONST_DECL:
case SSA_NAME:
return;
-
+ case FIELD_DECL:
+ inchash::add_expr (DECL_FIELD_OFFSET (arg), hstate, flags);
+ inchash::add_expr (DECL_FIELD_BIT_OFFSET (arg), hstate, flags);
+ return;
default:
break;
}