From 7efd5ff31df5ac69a23b6285474f0b50154801f7 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 14 Sep 2018 06:59:21 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-coalesce.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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) -- 2.30.2