Anshul Kumar, CSE IITD slide 5 Latency due to data hazards Producer instruction Consumer instruction Latency FP ALU op 3 Store double2 Load doubleFP ALU op1 Load doubleStore double0 Assume no structural hazards
Anshul Kumar, CSE IITD slide 12 Decisions and transformations Can S.D move after DADDUI and BNE ? Adjust S.D offset. Are loop iterations independent? Do register renaming. Remove extra loop termination tests, adjust the code. Analyze addresses. Can loads/stores be reordered? Schedule the code, preserving dependences.