[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 Bug 98863 depends on bug 80930, which changed state. Bug 80930 Summary: REE pass causes high memory usage via df_mir_alloc() with ASAN+UBSAN turned on https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80930 What|Removed

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-29 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #17 from rguenther at suse dot de --- On Fri, 29 Jan 2021, marxin at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 > > --- Comment #16 from Martin Liška --- > (In reply to Martin Liška from comment #15

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-29 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #16 from Martin Liška --- (In reply to Martin Liška from comment #15) > (In reply to Richard Biener from comment #14) > > Created attachment 50079 [details] > > patch I am testing > > > > Maybe you can produce updated mem-report with

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-29 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #15 from Martin Liška --- (In reply to Richard Biener from comment #14) > Created attachment 50079 [details] > patch I am testing > > Maybe you can produce updated mem-report with this patch? I'm testing the patch with my plotting s

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #14 from Richard Biener --- Created attachment 50079 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50079&action=edit patch I am testing Maybe you can produce updated mem-report with this patch?

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #12 from Richard Biener --- Wow, so the MIR problem starts with static void df_mir_alloc (bitmap all_blocks) { ... EXECUTE_IF_SET_IN_BITMAP (all_blocks, 0, bb_index, bi) { ... bitmap_set_range (&bb_info->in, 0, DF_

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 Richard Biener changed: What|Removed |Added Depends on||80930 --- Comment #11 from Richard Bien

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #10 from Richard Biener --- But I wonder why the mem-report doesn't show these? They dont' sum up to 20GB for me.

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #9 from Richard Biener --- Ah, I guess -fno-ree on the lto1 command-line gets ignored :/ So yeah, there's known issues with REE (PR80930 and PR98144).

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #8 from Richard Biener --- So -fno-ree doesn't help (just figured it might be given the DF numbers). But confirmed: > /usr/bin/time > /home/rguenther/install/gcc-11.0/usr/local/bin/../lib64/gcc/../../lib/gcc/x86_64-pc-linux-gnu/11.

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-28 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #7 from Martin Liška --- I set up ulimit -v 16GB and I attached gdb. Allocation failure happens here: (gdb) p *current_pass $1 = { = { type = RTL_PASS, name = 0x19f43ae "ree", (gdb) bt #0 xmalloc_failed (size=size@entry=

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #6 from Richard Biener --- df-problems.c:228 (df_rd_alloc)702M: 6.9% 705M 18M: 0.7% 0 0 heap df-problems.c:509 (df_rd_transfer_function) 3709M: 36.6% 3709M

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #5 from Richard Biener --- So GC memory according to -ftime-report isn't so bad. tail of sorted (after time): TOTAL : 25.40 0.32 25.75 244M TOTAL

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-28 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #4 from Martin Liška --- Created attachment 50075 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50075&action=edit time and memory report

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-28 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #3 from Martin Liška --- It's 521.wrf_r from SPEC 2017.

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 --- Comment #2 from Richard Biener --- Huh. I guess you need to trace that with detailed mem stats, split itself should be really OK it should be linear in the number of (split) insns.

[Bug rtl-optimization/98863] WRF with LTO consumes a lot of memory in split2 pass

2021-01-28 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98863 Martin Liška changed: What|Removed |Added Ever confirmed|0 |1 CC|