From: rguenth Date: Fri, 14 Sep 2018 06:59:21 +0000 (+0000) Subject: 2018-09-14 Richard Biener X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ab0b41696e32da3ed74347a49ca76df3b705eda;p=thirdparty%2Fgcc.git 2018-09-14 Richard Biener PR middle-end/63155 * tree-ssa-coalesce.c (ssa_conflicts_merge): Remove conflict bits for the merged partition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264304 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4ef577f82f16..3a004ec4a459 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-09-14 Richard Biener + + PR middle-end/63155 + * tree-ssa-coalesce.c (ssa_conflicts_merge): Remove conflict + bits for the merged partition. + 2018-09-13 Martin Sebor Bernd Edlinger diff --git a/gcc/tree-ssa-coalesce.c b/gcc/tree-ssa-coalesce.c index e4f576fbc199..750fd8350415 100644 --- a/gcc/tree-ssa-coalesce.c +++ b/gcc/tree-ssa-coalesce.c @@ -620,7 +620,11 @@ ssa_conflicts_merge (ssa_conflicts *ptr, unsigned x, unsigned y) { bitmap bz = ptr->conflicts[z]; if (bz) - bitmap_set_bit (bz, x); + { + bool was_there = bitmap_clear_bit (bz, y); + gcc_checking_assert (was_there); + bitmap_set_bit (bz, x); + } } if (bx)