문제

How can I build an interference graph so I may use it in register allocation? How do I determine live ranges?

도움이 되었습니까?

해결책

Live ranges are usually detected with liveness analysis for basic blocks. Liveness analysis can be computed using dominance frontiers.

A Simple, Fast Dominance Algorithm is a good read. I implemented both dominance and liveness analysis for a code analysis framework. You may have a look here and here.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top