This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/47860] is vectorization of "condition in nested loop" supported
- From: "vincenzo.innocente at cern dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 Feb 2011 08:24:53 +0000
- Subject: [Bug tree-optimization/47860] is vectorization of "condition in nested loop" supported
- Auto-submitted: auto-generated
- References: <bug-47860-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47860
--- Comment #3 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2011-02-24 08:24:31 UTC ---
Thanks Ira for the quick answer.
For what concern
if (N <= 0)
that was the reason to use "unsigned int" which apparently cause vectorization
not to work.
As we are on the subject:
do you plan to support autovectorization of idioms such "location of max"?
such as
float const * lmin2(float const * __restrict__ b, float const * __restrict__ e)
{
float const * ret = b++;
float amin = *(ret);
for(;b!=e; ++b)
if (amin>(*b)) {
ret = b;
amin = *ret;
}
return ret;
}
or equivalent.
It is used very often (for instance in pivoting code).
vincenzo