JS: Combine phi reads and ssa input nodes into SynthReadNode class.

This commit is contained in:
Anders Schack-Mulligen
2025-02-25 09:23:53 +01:00
parent 22b3dc8f43
commit 57c4fd6f25
3 changed files with 18 additions and 34 deletions

View File

@@ -1688,6 +1688,13 @@ module Make<LocationSig Location, InputSig<Location> Input> {
final class SsaDefinitionNode = SsaDefinitionNodeImpl;
final class SsaSynthReadNode extends SsaNode {
SsaSynthReadNode() {
this.(SsaDefinitionExtNodeImpl).getDefinitionExt() instanceof PhiReadNode or
this instanceof SsaInputNodeImpl
}
}
/**
* A node that represents an input to an SSA phi (read) definition.
*