Skip to content

Commit aeeb730

Browse files
Before SSA ID is the nonSSAID
1 parent a99053f commit aeeb730

File tree

1 file changed

+3
-5
lines changed
  • optvm/src/main/java/com/compilerprogramming/ezlang/compiler

1 file changed

+3
-5
lines changed

optvm/src/main/java/com/compilerprogramming/ezlang/compiler/Register.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,11 @@ public String name() {
7878
}
7979

8080
/**
81-
* The nonSSAID is valid as a frame slot prior to SSA conversion,
82-
* and following register assignment.
83-
* During SSA form this is not valid for registers that are instances of SSARegister.
81+
* The ID shared by all versions of a Register.
82+
* @see SSARegister
8483
*/
8584
public int nonSSAId() {
86-
//assert frameSlot >= 0; // assert inteferes with verbose display
87-
return frameSlot;
85+
return id;
8886
}
8987
public void updateSlot(int slot) {
9088
this.frameSlot = slot;

0 commit comments

Comments
 (0)