public class LocalLiveRangeAnalysis
extends java.lang.Object
| Constructor and Description |
|---|
LocalLiveRangeAnalysis() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isLive(int v,
int instructionIndex,
IR ir,
DefUse du)
Is the variable with value number v live immediately after a particular instruction index?
|
public static boolean isLive(int v,
int instructionIndex,
IR ir,
DefUse du)
Algorithm: returns true if there is a path from pc to some use of v that does not traverse the def of v
instructionIndex - index of an instruction in the IRjava.lang.IllegalArgumentException - if du is null