Skip to content

Commit a5506c9

Browse files
committed
refactor(evm): remove unused PhysicalReg from Variable class
The PhysicalReg field and related methods (setPhysicalRegister, getPhysicalRegister, hasPhysicalRegister) were added for a previous approach to gas register allocation that used direct physical register assignment. The current implementation uses explicit COPY instructions instead, making these fields unused.
1 parent 5ec87be commit a5506c9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/compiler/mir/variable.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,9 @@ class Variable : public NonCopyable {
1818

1919
VariableIdx getVarIdx() const { return VarIdx; }
2020

21-
void setPhysicalRegister(unsigned PhysReg) { PhysicalReg = PhysReg; }
22-
unsigned getPhysicalRegister() const { return PhysicalReg; }
23-
bool hasPhysicalRegister() const { return PhysicalReg != 0; }
24-
2521
private:
2622
VariableIdx VarIdx;
2723
MType *Type = nullptr;
28-
unsigned PhysicalReg = 0;
2924
};
3025

3126
} // namespace COMPILER

0 commit comments

Comments
 (0)