[Bug regression/58244] global variable: many THOUSANDS times slower execution

2013-09-07 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58244 Marc Glisse changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug regression/58244] global variable: many THOUSANDS times slower execution

2013-08-26 Thread martin.konopka at stuba dot sk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58244 --- Comment #8 from Martin Konôpka --- Yes, I understand now. Thanks. The lines with the sin() functions were not evaluated with the local declaration. My apologies for reporting the false bug. I will try to close the bug if I am allowed.

[Bug regression/58244] global variable: many THOUSANDS times slower execution

2013-08-26 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58244 --- Comment #7 from Andreas Schwab --- Now try the same code with -O0.

[Bug regression/58244] global variable: many THOUSANDS times slower execution

2013-08-26 Thread martin.konopka at stuba dot sk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58244 --- Comment #6 from Martin Konôpka --- (I am sorry that I do not understand internals of compilers.) I first hit the issue in a bigger code having more than 11000 lines. First I did not understand at all what is going on. I started to isolate the

[Bug regression/58244] global variable: many THOUSANDS times slower execution

2013-08-26 Thread martin.konopka at stuba dot sk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58244 --- Comment #5 from Martin Konôpka --- I do not fully understand the question. In both cases I used the same optimisation (-O2). My other comment a while ago was lost. I must retype it.

[Bug regression/58244] global variable: many THOUSANDS times slower execution

2013-08-26 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58244 --- Comment #4 from Andreas Schwab --- gcc was able to optimize your code to make it 6000 times faster. How is that a regression?

[Bug regression/58244] global variable: many THOUSANDS times slower execution

2013-08-26 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58244 --- Comment #3 from Marc Glisse --- With auxval local, the compiler knows that computing suma, etc is useless and removes all that code, including the calls to sin. So you would like the compiler to do the same for a global auxval? That requires t

[Bug regression/58244] global variable: many THOUSANDS times slower execution

2013-08-26 Thread martin.konopka at stuba dot sk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58244 --- Comment #2 from Martin Konôpka --- It it is confirmed, it is a very serious performance issue. In my test the code with the global declaration executed about 6 times slower than the code with the local declaration. For people doing HPC th

[Bug regression/58244] global variable: many THOUSANDS times slower execution

2013-08-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58244 --- Comment #1 from Andrew Pinski --- Why do you think this is a bug?