[Bug c++/90304] -O3 vectorization gets worse when code is moved into main()

2019-05-02 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90304

Richard Biener  changed:

   What|Removed |Added

   Keywords||missed-optimization
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2019-05-02
 Blocks||49774
 Ever confirmed|0   |1

--- Comment #2 from Richard Biener  ---
Yes, it is related to us not handling restrict qualification of automatic
variables.  The whole loop is still vectorized we just have to emit a runtime
check for possible aliasing.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49774
[Bug 49774] [meta-bug] restrict qualification aliasing issues

[Bug c++/90304] -O3 vectorization gets worse when code is moved into main()

2019-05-01 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90304

--- Comment #1 from Andrew Pinski  ---
There is another bug that is similar; the issue is restrict related.