Consider a 4 stage pipeline processor. The number of cycles needed by the four instructions I1,I2,I3,I4 in stages S1,S2,S3,S4 is shown below:
I1I2I3I4S12121S21312S31212S4 1232
What is the number of cycles needed to execute the following loop?
For (i=1 to 2) {I1; I2; I3; I4;}