From: Richard Biener Date: Fri, 14 Sep 2018 06:59:21 +0000 (+0000) Subject: re PR middle-end/63155 (memory hog) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7efd5ff31df5ac69a23b6285474f0b50154801f7;p=gcc.git re PR middle-end/63155 (memory hog) 2018-09-14 Richard Biener PR middle-end/63155 * tree-ssa-coalesce.c (ssa_conflicts_merge): Remove conflict bits for the merged partition. From-SVN: r264304 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4ef577f82f1..3a004ec4a45 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 e4f576fbc19..750fd835041 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)