[Bug tree-optimization/82776] Unable to optimize the loop when iteration count is unavailable.

2021-05-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82776 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug tree-optimization/82776] Unable to optimize the loop when iteration count is unavailable.

2017-11-02 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82776 Richard Biener changed: What|Removed |Added Keywords||missed-optimization

[Bug tree-optimization/82776] Unable to optimize the loop when iteration count is unavailable.

2017-11-01 Thread hiraditya at msn dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82776 --- Comment #9 from AK --- Are we also taking advantage of this statement in the standard: > An iteration statement that performs no input/output operations, does not > access volatile objects, and performs no synchronization or atomic

[Bug tree-optimization/82776] Unable to optimize the loop when iteration count is unavailable.

2017-11-01 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82776 --- Comment #8 from Marc Glisse --- At some point, we could also think of taking advantage of what the C++ standard (for instance) says: "[intro.progress] The implementation may assume that any thread will eventually do one of the following:

[Bug tree-optimization/82776] Unable to optimize the loop when iteration count is unavailable.

2017-10-31 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82776 --- Comment #7 from amker at gcc dot gnu.org --- Testing a patch.

[Bug tree-optimization/82776] Unable to optimize the loop when iteration count is unavailable.

2017-10-31 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82776 --- Comment #6 from amker at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #5) > (In reply to amker from comment #4) > > Well, one decision needs to be made is whether such bound information should > > be covered by

[Bug tree-optimization/82776] Unable to optimize the loop when iteration count is unavailable.

2017-10-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82776 --- Comment #5 from Jakub Jelinek --- (In reply to amker from comment #4) > Well, one decision needs to be made is whether such bound information should > be covered by -faggressive-loop-optimizations. We already did this for > undefined

[Bug tree-optimization/82776] Unable to optimize the loop when iteration count is unavailable.

2017-10-31 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82776 --- Comment #4 from amker at gcc dot gnu.org --- Well, one decision needs to be made is whether such bound information should be covered by -faggressive-loop-optimizations. We already did this for undefined behavior of sign type and array bound.

[Bug tree-optimization/82776] Unable to optimize the loop when iteration count is unavailable.

2017-10-31 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82776 amker at gcc dot gnu.org changed: What|Removed |Added CC||amker at gcc dot gnu.org ---

[Bug tree-optimization/82776] Unable to optimize the loop when iteration count is unavailable.

2017-10-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82776 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/82776] Unable to optimize the loop when iteration count is unavailable.

2017-10-31 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82776 --- Comment #1 from Marc Glisse --- That could be because gcc sadly refuses to optimize away infinite loops (happens for other cases, and cddce2 dump (the pass that removes the whole thing when the macro is defined) says "can not prove