]> git.ipfire.org Git - thirdparty/gcc.git/commit
Hash operands of PHI in ipa-icf
authorJan Hubicka <jh@suse.cz>
Thu, 28 Mar 2024 12:24:54 +0000 (13:24 +0100)
committerJan Hubicka <jh@suse.cz>
Thu, 28 Mar 2024 12:24:54 +0000 (13:24 +0100)
commit0923fe2d4808c16b72c1d1bfe28220dd326d8b76
tree9e6e3a5f4c73b7585d88e1a410a82d518c869ed4
parent7942558f27038461f948ca10140a156ae678cdf8
Hash operands of PHI in ipa-icf

This patch fixes cache colision on function whose body differs only by constants
at PHI operands.  As for

if (test)
  a = cst1;
else
  a = cst2;

gcc/ChangeLog:

PR middle-end/113907
* ipa-icf.cc (sem_function::init): Hash PHI operands
(sem_function::compare_phi_node): Add argument about preserving order
gcc/ipa-icf.cc