diff options
author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2017-05-06 21:07:02 +0000 |
---|---|---|
committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2017-05-06 21:07:02 +0000 |
commit | b0d3add053c14a47f3dbbdd171c4b7b8c2fff25c (patch) | |
tree | 3b0ba5a3d223e09e5ccc78b48df48840dc9bd118 /compiler/aoptobj.pas | |
parent | a16d4c04b0aaa98c20db1f4ac0644dad48a11f59 (diff) | |
download | fpc-b0d3add053c14a47f3dbbdd171c4b7b8c2fff25c.tar.gz |
* SkipLabels moved to aoptutils
* factored out OptPass2Jmp assembler optimization
* OptPass2Jmp now used by x86-64 as well
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@36141 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/aoptobj.pas')
-rw-r--r-- | compiler/aoptobj.pas | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/compiler/aoptobj.pas b/compiler/aoptobj.pas index 7520280831..a393c88ccc 100644 --- a/compiler/aoptobj.pas +++ b/compiler/aoptobj.pas @@ -367,7 +367,8 @@ Unit AoptObj; cutils, globals, verbose, - procinfo; + procinfo, + aoptutils; function JumpTargetOp(ai: taicpu): poper; inline; @@ -1147,25 +1148,6 @@ Unit AoptObj; end; - function SkipLabels(hp: tai; var hp2: tai): boolean; - {skips all labels and returns the next "real" instruction} - begin - while assigned(hp.next) and - (tai(hp.next).typ in SkipInstr + [ait_label,ait_align]) Do - hp := tai(hp.next); - if assigned(hp.next) then - begin - SkipLabels := True; - hp2 := tai(hp.next) - end - else - begin - hp2 := hp; - SkipLabels := False - end; - end; - - function FindAnyLabel(hp: tai; var l: tasmlabel): Boolean; begin FindAnyLabel := false; |