


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



























Case 1: Each BB requires 3 resources Assume processor has 2 resources No IC: 13 + .63 + .43 + 13 = 9^ 9 / 2 = 4.5 = 5 cycles IC: 1(3 + 3 + 3+ 3) = 12^ 12 / 2 = 6 cycles (^100) BB1^ BB2 60 40 BB
BB 60 40
BB2 if p1 BB^
Case 2: Each BB requires 3 resources BB3 if p2 Assume processor has 6 resources BB4 No IC: 13 + .63 + .43 + 13 = 9^ 9 / 6 = 1.5 = 2 cycles IC: 1(3+3+3+3) = 12^ 12 / 6 = 2 cycles 100
Case 1: Hazard in BB3 No IC : SB out of BB1, 2, 4, operations In BB4 free to overlap with those in BB1 and BB2 IC: operations in BB4 cannot overlap With those in BB1 (BB2 ok) (^100) BB1^ BB2 60 40 BB
BB 60 40
BB2 if p1 BB3^ BB3 if p2^ BB4 100
BB 60 40
BB2 if p1 BB3^ BB3 if p2^ BB4 100
Æ“main path” »^ Use a heuristic function to select other blocks that are“compatible” with the main path »^ Consider each BB by itself for simplicity^ y^ Compute priority for other BB’s^ y^ Normalize against main path. Y BSVi = (K x (weight_bbi / size_bbi) x (size_main_path /weight_main_path) x bb_chari) »^ weight = execution frequency »^ size = number of operations »^ bb_char = characteristic value of each BB^ y^ Max value = 1, Hazardous instructions reduce this to 0.5, 0.25, ... »^ K = constant to represent processor issue rate Y Include BB when BSVi > Threshold
Tail duplication same as with Superblock formation 10 BB1 (^80 20) BB2^ BB3 8020 BB4 (^10) BB5^9010 BB6 90 10
If-convert intra-HB branches only!! BB2^80 BB4^ BB
BB1 p1,p2 = CMPP BB2 if p1 BB3 if p2 BB4 BB^
Form the HB for this subgraph Assume K = 4, BSV Threshold = 2 BB2 - 8^ BB4 - 2
55 (^20) BB5 - 3 (^10) BB7 -1^3510
Enumerate all paths, rank by priority1. A-B-D-E-F-H-N2. A-B-D-E-F-H-K-N3. A-B-D-E-G-J-M-N4. A-B-D-E-G-J-L-M-N5. A-B-D-E-G-I-M-N6. A-B-D-E-G-J-L-N7. A-B-D8. A-C-D-E-F-H-N9. A-C-D-E-F-H-K-N10. A-C-D-E-G-J-M-N11. A-C-D-E-G-J-L-M-N12. A-C-D-E-G-I-M-N13. A-C-D-E-G-J-L-N14. A-C-D