3 votes 3 votes Number of WAR dependencies possible R1 <- R3 + R2 R3 <- R3 + R5 R3 <- R2 + R3 Is it 2 or 3? CO and Architecture data-dependency + – Rajesh R asked Oct 26, 2017 Rajesh R 592 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply bharti commented Oct 26, 2017 reply Follow Share it's 2 0 votes 0 votes Rajesh R commented Oct 26, 2017 reply Follow Share Answer is 3. They have taken I1-I3 also as WAR. 0 votes 0 votes sid1221 commented Oct 26, 2017 reply Follow Share 3 is correct ... you should consider all cases ... (combination) 2 votes 2 votes Please log in or register to add a comment.
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. #Rahul answered Oct 26, 2017 #Rahul comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments Rajesh R commented Oct 26, 2017 reply Follow Share Why is 1-3 not a WAR in original question ? Reordering of instruction can take place and hence dependency is also possible. I need confirmation on this. Maybe @Arjun sir can help. 0 votes 0 votes srestha commented Oct 26, 2017 reply Follow Share it is 2 . As 1 time write done then after that all dependency depend on that only. So, R1 has no dependency on R3 1 votes 1 votes AskHerOut commented Dec 22, 2017 reply Follow Share Are you sure? because in one answer @habib khan sir considered every possible dependency even the one in which variable was updated already. 0 votes 0 votes Please log in or register to add a comment.