[Bug tree-optimization/47579] STL size() == 0 does unnecessary shift

2022-11-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47579 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Severity|normal

[Bug tree-optimization/47579] STL size() == 0 does unnecessary shift

2020-12-25 Thread vanyacpp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47579 Ivan Sorokin changed: What|Removed |Added CC||vanyacpp at gmail dot com --- Comment #3

[Bug tree-optimization/47579] STL size() == 0 does unnecessary shift

2012-01-05 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47579 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/47579] STL size() == 0 does unnecessary shift

2011-02-01 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47579 --- Comment #1 from Richard Guenther 2011-02-01 22:54:19 UTC --- I think v.size() should be simply optimized to work on char * pointer differences. Recognizing the optimization opportunity requires to see dereferences of the pointers to deduce t