Introducing the live intervals
The liveness information is represented in LLVM through the concept of live intervals and the related LiveInterval
class. Live intervals, at their core, are a set of ranges, described using the slot index representation, that model where a variable is alive in a function.
Table 19.1 shows an example of the live interval of a virtual register:
Machine IR |
Live interval |
|
|
Table 19.1: An example of the live interval representation
The left column of Table 19.1 shows a snippet of a function...