]> gcc.gnu.org Git - gcc.git/commit
ipa: fix ICE in get_default_value
authorMartin Liska <mliska@suse.cz>
Thu, 13 Aug 2020 07:38:41 +0000 (09:38 +0200)
committerMartin Liska <mliska@suse.cz>
Thu, 13 Aug 2020 08:27:37 +0000 (10:27 +0200)
commitf91770216eade83f068528c1e4f00e2ac3b23044
tree21fa47470882ead9d0bc6ce20225990b26e3e5ab
parent2b5490f5d1633fedf20e6eba87153c5963c61368
ipa: fix ICE in get_default_value

The patch aligns code with ipcp_bits_lattice::set_to_constant
where we properly mask m_value with m_mask. The same should
be done here.

gcc/ChangeLog:

PR ipa/96482
* ipa-cp.c (ipcp_bits_lattice::meet_with_1): Mask m_value
with m_mask.

gcc/testsuite/ChangeLog:

PR ipa/96482
* gcc.dg/ipa/pr96482-2.c: New test.
gcc/ipa-cp.c
gcc/testsuite/gcc.dg/ipa/pr96482-2.c [new file with mode: 0644]
This page took 0.075187 seconds and 5 git commands to generate.