From cac1bd08d95de15815986b0b6ef7e82458d6bb25 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 17 Jan 2019 09:05:12 +0100 Subject: [PATCH] re PR tree-optimization/86214 (Strongly increased stack usage) PR tree-optimization/86214 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts if x == y. From-SVN: r268009 --- gcc/ChangeLog | 4 ++++ gcc/cfgexpand.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 986a73d0118..170464af9ba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2019-01-17 Jakub Jelinek + PR tree-optimization/86214 + * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts + if x == y. + PR rtl-optimization/88870 * dce.c (deletable_insn_p): Never delete const/pure calls that can throw if we can't alter the cfg or delete dead exceptions. diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 2337c6312d0..518d71c74c8 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -470,6 +470,8 @@ add_stack_var_conflict (size_t x, size_t y) { struct stack_var *a = &stack_vars[x]; struct stack_var *b = &stack_vars[y]; + if (x == y) + return; if (!a->conflicts) a->conflicts = BITMAP_ALLOC (&stack_var_bitmap_obstack); if (!b->conflicts) -- 2.30.2