+1 vote
96 views

Consider the following set of instructions executed for a program to be accomplish.

How many number of anti data dependency and true data dependency in the above instructions?

Can anyone give the answer and solution for how many RAW dependency is there?

| 96 views
0
Should be 6 RAW dependencies, imo.
0

@goxul

I am getting 5. See where I am going wrong.

$i3-i2$

$i4-i2$

$i4-i3$

$i6-i3$

$i5-i4$

0

I think you might be getting $i5-i2$ also ?

0

@Kushagra गुप्ता

Yes, I5-I2 should also be one.

"Adjacency is not relevant for determining Read-After-Write dependences. You simply list all the instructions where one of the source registers reads the value produced by some previous instruction."

0

Yes, it was a doubt to me also but after going through previous year questions and referring to best answers I decided to stick to that.

0
Have you gone through any other source as I was solving data-dependencies "tag" questions and I have found out that we should not consider that.

I can't guarantee you that but I couldn't find any valid book reference to prove my point as it is no where mentioned even in standard books
0
0

And sir has written it :

But in none of the standard references nor dependency outputting software that is output and so you should not count it in GATE also.

0
yeah only $5$ RAW dependencies
0
Only 5 I2-I5 NOT COUNTED