[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 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 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] New: global variable: many THOUSANDS times slower execution

2013-08-26 Thread martin.konopka at stuba dot sk
Component: regression Assignee: unassigned at gcc dot gnu.org Reporter: martin.konopka at stuba dot sk Created attachment 30701 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30701&action=edit sample C code to demonstrate the performance issue * I have a very small samp