| View previous topic :: View next topic |
| Author |
Message |
SiliconValley
Joined: 24 May 2011 Posts: 6
|
Posted: Tue Feb 21, 2012 10:11 pm Post subject: Loop not vectorized/parallelized: potential early exits |
|
|
The following loop is not vectorized due to "potential early exits". But I cannot see how this could be: no change to the loop variable, no break.
Thanks for enlightening me!
mario
| Code: | for(j=N-1, jnew=mNumGoodFreq-1; j >= 0; --j)
if(mGoodFreq[j])
{
mV[j*N + i] = mU[jnew*mNumGoodFreq + inew] * mSqrtCodonFreq[j];
--jnew;
}
else
{
mV[j*N + i] = (i == j) ? 1. : 0.;
}
|
|
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Wed Feb 22, 2012 9:29 am Post subject: |
|
|
Hi Mario,
Can you post a reproducible example?
Thanks,
Mat |
|
| Back to top |
|
 |
|