[Bug c++/43149] Partial optimization

2021-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43149 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/43149] Partial optimization

2010-02-23 Thread pinskia at gmail dot com
--- Comment #8 from pinskia at gmail dot com 2010-02-23 16:29 --- Subject: Re: Partial optimization Sent from my iPhone On Feb 23, 2010, at 8:16 AM, "bschindler at inf dot ethz dot ch" wrote: > > > --- Comment #6 from bschindler at inf dot ethz dot ch > 2010-02-23 16:16 ---

Re: [Bug c++/43149] Partial optimization

2010-02-23 Thread Andrew Pinski
Sent from my iPhone On Feb 23, 2010, at 8:16 AM, "bschindler at inf dot ethz dot ch" > wrote: --- Comment #6 from bschindler at inf dot ethz dot ch 2010-02-23 16:16 --- Also, the following would not work #pragma GCC optimize(2) // I don't know whether I got that syntax right

[Bug c++/43149] Partial optimization

2010-02-23 Thread bschindler at inf dot ethz dot ch
--- Comment #7 from bschindler at inf dot ethz dot ch 2010-02-23 16:24 --- Okay, the need is simply this: I have an octree implemented using eigen. With gcc -g, it takes roughly 3 minutes to build the tree With gcc -O1 -g, it takes about 1-2 seconds for the same The problem is Eige

[Bug c++/43149] Partial optimization

2010-02-23 Thread bschindler at inf dot ethz dot ch
--- Comment #6 from bschindler at inf dot ethz dot ch 2010-02-23 16:16 --- Also, the following would not work #pragma GCC optimize(2) // I don't know whether I got that syntax right #include #pragma pop_options blubb; Eigen/Core is a separate file so I'd expect the pragma to have no

[Bug c++/43149] Partial optimization

2010-02-23 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-02-23 16:13 --- I wouldn't surprised if it doesn't work very well for template instantiations though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43149

[Bug c++/43149] Partial optimization

2010-02-23 Thread pinskia at gmail dot com
--- Comment #4 from pinskia at gmail dot com 2010-02-23 16:02 --- Subject: Re: Partial optimization Sent from my iPhone On Feb 23, 2010, at 7:53 AM, "bangerth at gmail dot com" wrote: > > > --- Comment #3 from bangerth at gmail dot com 2010-02-23 15:53 > --- > So the at

Re: [Bug c++/43149] Partial optimization

2010-02-23 Thread Andrew Pinski
Sent from my iPhone On Feb 23, 2010, at 7:53 AM, "bangerth at gmail dot com" > wrote: --- Comment #3 from bangerth at gmail dot com 2010-02-23 15:53 --- So the attribute would have to be attached to the namespace, I guess. Or just use the pragma instead :). We can keep the

[Bug c++/43149] Partial optimization

2010-02-23 Thread bangerth at gmail dot com
--- Comment #3 from bangerth at gmail dot com 2010-02-23 15:53 --- So the attribute would have to be attached to the namespace, I guess. We can keep the PR open, but my best guess is that this is going to be one of those PRs that stay open forever as there is so little demand for this k

[Bug c++/43149] Partial optimization

2010-02-23 Thread bschindler at inf dot ethz dot ch
--- Comment #2 from bschindler at inf dot ethz dot ch 2010-02-23 15:45 --- Thank you for that hint, however the problem does not disappear just like that. I would like the entire namespace be optimized that way and from the discussion it seems that there is no easy way to do this? -

[Bug c++/43149] Partial optimization

2010-02-23 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2010-02-23 15:13 --- This feature already exists. See the discussion of the "optimize" attribute in http://gcc.gnu.org/onlinedocs/gcc-4.4.3/gcc/Function-Attributes.html#Function-Attributes W. -- bangerth at gmail dot com changed: