570 views
3 votes
3 votes
Number of WAR dependencies possible

R1 <- R3 + R2

R3 <- R3 + R5

R3 <- R2 + R3

Is it 2 or 3?

1 Answer

0 votes
0 votes
As there are 3 WAR dependencies I1 I2,I2 I3 and I1 I3.But the WAR dependency I1 I3 is using register R3 whose value is updated in I2.So we can neglect I1 I3 dependency.

I think 2 must be the ans.

Related questions

10 votes
10 votes
7 answers
1
Deepak Sharma 1 asked Dec 7, 2015
6,536 views
Consider the following instructions.$I_1:R_1=100$$I_2:R_1=R_2+R_4$$I_3:R_2=R_4+25$$I_4:R_4=R_1+R_3$$I_5:R_1=R_1+30$Calculate sum of ($\text{WAR, RAW and WAW}$) dependenci...
1 votes
1 votes
1 answer
4
Tuhin Dutta asked Dec 3, 2017
2,073 views
J1: R1 = 100J2: R1 = R2 + R4J3: R2 = R4 + 25J4: R4 = R1 + R3J5: R1 = R1 + 30Give the no of RAW, WAR and WAW hazards