[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2022-01-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 Andrew Pinski changed: What|Removed |Added Target Milestone|10.0|---

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2020-09-06 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 John David Anglin changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2020-08-29 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #18 from Sergei Trofimovich --- Thank you!

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2020-08-25 Thread roger at nextmovesoftware dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 Roger Sayle changed: What|Removed |Added Resolution|--- |FIXED CC|

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #16 from CVS Commits --- The releases/gcc-10 branch has been updated by Roger Sayle : https://gcc.gnu.org/g:ed1e7a6a8ad6903ee952e82ac9ddac01efb286dd commit r10-8674-ged1e7a6a8ad6903ee952e82ac9ddac01efb286dd Author: Roger Sayle Date

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #15 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:050fc8b27a852007f8bb667999e1c8cfd31f90e1 commit r11-2851-g050fc8b27a852007f8bb667999e1c8cfd31f90e1 Author: Roger Sayle Date: Tue A

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2020-08-17 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org --- Comme

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2020-08-17 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 Andrew Pinski changed: What|Removed |Added CC||mikulas at artax dot karlin.mff.cu

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2020-01-07 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #12 from Sergei Trofimovich --- I started looking at implementing full local cache in complement to global evicting 'struct alg_hash_entry x_alg_hash[NUM_ALG_HASH_ENTRIES];' cache. Noob question: which gcc's data structure should I u

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2019-07-21 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #11 from John David Anglin --- I tend to think there may be an issue with costs. There is no pattern for muldi3 on 32-bit hppa, so we use the generic code from libgcc. How do we know the cost for this routine? If synth_mult is disa

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2019-07-20 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #10 from John David Anglin --- This patch improves things by about a factor 4: Index: expmed.h === --- expmed.h(revision 27) +++ expmed.h(working copy) @@ -1

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2019-07-09 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #9 from John David Anglin --- Also appears to occur building glusterfs.

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2019-03-17 Thread mattst88 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #8 from Matt Turner --- This xxhash.c file is embedded in many different projects, and is really causing problems on gentoo/hppa: zstandard: Fri Mar 15 14:16:42 2019: 7 hours, 29 minutes, 49 seconds Are we any closer to a fix than w

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2018-09-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #7 from Richard Biener --- (In reply to Jakub Jelinek from comment #6) > For the above case, there are during the recursion 77608 synth_mult calls, > which might be ok, so indeed better hashing would help, but 10311 is too > large and

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2018-09-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #6 from Jakub Jelinek --- For the above case, there are during the recursion 77608 synth_mult calls, which might be ok, so indeed better hashing would help, but 10311 is too large and is not a prime number. Plus this hash table is re

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2018-09-08 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #5 from Sergei Trofimovich --- (In reply to dave.anglin from comment #3) > On 2018-09-08 3:11 PM, slyfox at inbox dot ru wrote: > > -#define NUM_ALG_HASH_ENTRIES 1031 > > +#define NUM_ALG_HASH_ENTRIES 10311 > Does this help the compil

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2018-09-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #4 from Jakub Jelinek --- Can be reproduced on x86_64-linux on the same testcase, just put a breakpoint on synth_mult and (gdb) set var t = -8796714831421723037 (gdb) set cost_limit->cost = 128 (gdb) set cost_limit->latency = 128 ther

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2018-09-08 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 John David Anglin changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2018-09-08 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #3 from dave.anglin at bell dot net --- On 2018-09-08 3:11 PM, slyfox at inbox dot ru wrote: > -#define NUM_ALG_HASH_ENTRIES 1031 > +#define NUM_ALG_HASH_ENTRIES 10311 Does this help the compile time for xxhash?

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2018-09-08 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #2 from Sergei Trofimovich --- synth_mult() is called 57M times on this tiny sample. I noticed there is a NUM_ALG_HASH_ENTRIES bucket size for already computed algorithms for multiplication. The below tweak seems to workaround pathol

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2018-09-08 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 Sergei Trofimovich changed: What|Removed |Added Target||hppa-* CC|