This commit is contained in:
Arne Döring 2019-08-04 19:31:55 +02:00 • committed by Andreas Rumpf
commit b73d097d36
2 changed files with 16 additions and 1 deletions

View file

@ -2160,7 +2160,7 @@ proc optimizeJumps(c: PCtx; start: int) =
var d = i + c.code[i].jmpDiff
for iters in countdown(maxIterations, 0):
case c.code[d].opcode
of opcJmp, opcJmpBack:
of opcJmp:
d = d + c.code[d].jmpDiff
of opcTJmp, opcFJmp:
if c.code[d].regA != reg: break