0
$\begingroup$

Say I have loop like this,

for(1 to 10)
{
A[i][j]=A[i][j];
}

What kind of dependency is this? RAW or WAR?

According to me it is none, since there is no problem whatever we do earlier. Even if we write or even if we read earlier, there should not be any problem. So what kind of dependency do we call these?

$\endgroup$
1
  • 2
    $\begingroup$ That code is equivalent to a no-op (assuming $A[i][j]$ exists). $\endgroup$ – Steven Oct 3 '20 at 15:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.