[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #18 from Richard Biener --- Created attachment 58847 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58847&action=edit reduced testcase Reduced testcase that reproduces the issue on x86_64 with --param logical-op-non-short-circ

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #17 from Richard Biener --- (In reply to Richard Biener from comment #16) > So with --param logical-op-non-short-circuit=1 (and my patch) the > insn-emit-96.cc testcase as attached compiles in 100s and > > dominator optimization

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #16 from Richard Biener --- So with --param logical-op-non-short-circuit=1 (and my patch) the insn-emit-96.cc testcase as attached compiles in 100s and dominator optimization : 5.62 ( 6%) 0.05 ( 1%) 5.56 ( 5%)

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #15 from Richard Biener --- (In reply to Mark Wielaard from comment #12) > (In reply to Andreas Schwab from comment #11) > > You can add target-specific flags like this: > > > > $(INSNEMIT_SEQ_O): ALL_COMPILERFLAGS += -fno-tree-domi

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #14 from Richard Biener --- (In reply to Andi Kleen from comment #13) > Created attachment 58842 [details] > add a param to limit BBs for dominator pass > > Maybe something like this patch. It adds a check to disable the dom passes

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-05 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #13 from Andi Kleen --- Created attachment 58842 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58842&action=edit add a param to limit BBs for dominator pass Maybe something like this patch. It adds a check to disable the dom

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-05 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #12 from Mark Wielaard --- (In reply to Andreas Schwab from comment #11) > You can add target-specific flags like this: > > $(INSNEMIT_SEQ_O): ALL_COMPILERFLAGS += -fno-tree-dominator-opts Thanks. With "$(GIMPLE_MATCH_PD_SEQ_O) $(I

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-04 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #11 from Andreas Schwab --- You can add target-specific flags like this: $(INSNEMIT_SEQ_O): ALL_COMPILERFLAGS += -fno-tree-dominator-opts

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-04 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #10 from Mark Wielaard --- (In reply to Andrew Macleod from comment #7) > Meanwhile the "workaround" might be to use '-fno-tree-dominator-opts' That reduces the compile time from hours to just 15 minutes! Still trying to figure out

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-02 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 Sam James changed: What|Removed |Added See Also|https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=11160

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-01 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 Sam James changed: What|Removed |Added Last reconfirmed||2024-08-02 Status|UNCONFIRMED

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-01 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #7 from Andrew Macleod --- I think fixing 114855 will probably resolve this one too. Its a more "managable" test case. I'm trying to have a look, but I am off next week so it isn't imminent. Meanwhile the "workaround" might be to

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #6 from Andrew Pinski --- (In reply to Andi Kleen from comment #5) > Have you tried a LTO build? It can split large files. > > It's not incremental however (unless the recent patches for that go in) I don't think it matters in this

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-01 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-01 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #4 from Mark Wielaard --- (In reply to Richard Biener from comment #3) > There's another PR where DOM shows up via ranger also at -O1 - does -O1 help > here? No. With -O2 it took 6 hours for that file to compile. With -O1 it is stil

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-01 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #2 from Mark Wielaard --- Time variable usr sys wall GGC phase setup: 0.10 ( 0%) 0.00 ( 0%) 0.11 ( 0%) 2844k ( 0%) phase parsing

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-07-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 Andrew Pinski changed: What|Removed |Added Keywords||compile-time-hog --- Comment #1 from An