Lesson 11--Optimizations for Code Size Flashcards

1
Q

Dead register

A

A register that contains a value that was live, but now is dead.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Unused register

A

A register that is carrying a live value for a long live range, but for much of the live range the value is unused.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Postpass Optimization

A
­--dead/unused register identification
­--hot region identification
­--spill identification
­--weighted bipartite graph matching
­--compensation code cost analysis
­--unused register allocation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Compensation code starts by considering 3 regions

A

Current
Predecessor
Successor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Current Region

A

Basic blocks corresponding to the edges in an analysis unit extension

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Predecessor Region

A

Basic blocks not in the current region, and their predecessors in current region

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Successor Region

A

Basic blocks not in the current region and their successors in the current region

How well did you know this?
1
Not at all
2
3
4
5
Perfectly