Chapter 9: Code generation

Example

1: t1 = a * a

2: t 2 = a * b

3: t3 = 2 * t2

4: t4 = t 1 + t3

5: t5 = b * b

6: t6 = t 4 + t5

7: X = t 6

For example, consider the basic block shown above.