This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/85143] Loop limit prevents (auto)vectorization
- From: "robertw89 at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 31 Mar 2018 20:30:53 +0000
- Subject: [Bug tree-optimization/85143] Loop limit prevents (auto)vectorization
- Auto-submitted: auto-generated
- References: <bug-85143-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85143
--- Comment #2 from robertw89 at googlemail dot com ---
This change would be trivial.
To defend my case and rant a bit ;) ...
Indeed, but programmers can manually unroll a loop too ;) . What if the code is
autogenerated? What if the constant comes from a devirtualized call, etc. It
could do this optimization.