Big compiler Cleanup (#14777)
This commit is contained in:
parent
f8c48fc186
commit
13e659cfec
53 changed files with 481 additions and 783 deletions
|
|
@ -91,7 +91,7 @@ proc isLastRead(location: PNode; cfg: ControlFlowGraph; otherRead: var PNode; pc
|
|||
return -1
|
||||
inc pc
|
||||
of goto:
|
||||
pc = pc + cfg[pc].dest
|
||||
pc += cfg[pc].dest
|
||||
of fork:
|
||||
# every branch must lead to the last read of the location:
|
||||
var variantA = pc + 1
|
||||
|
|
@ -156,7 +156,7 @@ proc isFirstWrite(location: PNode; cfg: ControlFlowGraph; pc, until: int): int =
|
|||
return -1
|
||||
inc pc
|
||||
of goto:
|
||||
pc = pc + cfg[pc].dest
|
||||
pc += cfg[pc].dest
|
||||
of fork:
|
||||
# every branch must not contain a def/use of our location:
|
||||
var variantA = pc + 1
|
||||
|
|
@ -198,7 +198,7 @@ proc initialized(code: ControlFlowGraph; pc: int,
|
|||
while pc < code.len:
|
||||
case code[pc].kind
|
||||
of goto:
|
||||
pc = pc + code[pc].dest
|
||||
pc += code[pc].dest
|
||||
of fork:
|
||||
var initA = initIntSet()
|
||||
var initB = initIntSet()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue