Java: Move SSA entry defs to index -1.

This commit is contained in:
Anders Schack-Mulligen
2025-10-21 14:16:06 +02:00
parent 0419667460
commit c4f0868844
2 changed files with 4 additions and 4 deletions

View File

@@ -169,7 +169,7 @@ private module SsaInput implements SsaImplCommon::InputSig<Location, BasicBlock>
certain = true
or
hasEntryDef(v, bb) and
i = 0 and
i = -1 and
certain = true
}
@@ -232,7 +232,7 @@ private module Cached {
exists(BaseSsaSourceVariable v, BasicBlock bb, int i |
def.definesAt(v, bb, i) and
hasEntryDef(v, bb) and
i = 0
i = -1
)
}

View File

@@ -188,7 +188,7 @@ private module SsaInput implements SsaImplCommon::InputSig<Location, BasicBlock>
certain = true
or
hasEntryDef(v, bb) and
i = 0 and
i = -1 and
certain = true
or
uncertainVariableUpdate(v, _, bb, i) and
@@ -502,7 +502,7 @@ private module Cached {
exists(SsaSourceVariable v, BasicBlock bb, int i |
def.definesAt(v, bb, i) and
hasEntryDef(v, bb) and
i = 0
i = -1
)
}