diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-01-18 11:07:27 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-01-18 11:07:27 +0100 |
commit | d0bf921f6a0b8ffdad74fa5eb5ddf2e70a9acfd6 (patch) | |
tree | 34400b335f0a502e54d5e3b06e3a7fe5a68a72e2 /gcc/tree-inline.h | |
parent | 6616a31808d9f97b6dbca5f7cba4f61825e7289b (diff) | |
download | gcc-d0bf921f6a0b8ffdad74fa5eb5ddf2e70a9acfd6.zip gcc-d0bf921f6a0b8ffdad74fa5eb5ddf2e70a9acfd6.tar.gz gcc-d0bf921f6a0b8ffdad74fa5eb5ddf2e70a9acfd6.tar.bz2 |
re PR tree-optimization/86214 (Strongly increased stack usage)
PR tree-optimization/86214
* tree-inline.h (struct copy_body_data): Add
add_clobbers_to_eh_landing_pads member.
* tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
(copy_edges_for_bb): Call it if EH edge destination is <
id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
(expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
if flag_stack_reuse != SR_NONE and clear it afterwards.
* g++.dg/opt/pr86214-1.C: New test.
* g++.dg/opt/pr86214-2.C: New test.
From-SVN: r268067
Diffstat (limited to 'gcc/tree-inline.h')
-rw-r--r-- | gcc/tree-inline.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/tree-inline.h b/gcc/tree-inline.h index f09e2b4..11f596e 100644 --- a/gcc/tree-inline.h +++ b/gcc/tree-inline.h @@ -155,6 +155,12 @@ struct copy_body_data /* A list of addressable local variables remapped into the caller when inlining a call within an OpenMP SIMD-on-SIMT loop. */ vec<tree> *dst_simt_vars; + + /* If clobbers for local variables from the inline function + that need to live in memory should be added to EH landing pads + outside of the inlined function, this should be the number + of basic blocks in the caller before inlining. Zero otherwise. */ + int add_clobbers_to_eh_landing_pads; }; /* Weights of constructions for estimate_num_insns. */ |