diff options
author | sergei <sergei@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-10-03 08:08:04 +0000 |
---|---|---|
committer | sergei <sergei@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-10-03 08:08:04 +0000 |
commit | afecf19b3fef5f01e56170d40011aea5019140a9 (patch) | |
tree | 7f0dcc82caecec43b69f53e854eab868b8f58847 /compiler/x86_64/r8664int.inc | |
parent | 932dd87f10fc138c48650626a14fba8cbbef8f98 (diff) | |
download | fpc-afecf19b3fef5f01e56170d40011aea5019140a9.tar.gz |
* x86 targets: Profiling shows that quite a bit of time is spent in findreg_by_number(), despite it uses binary search. Worse, it is repeated for every piece of register information. Trying to get rid of some of these calls: rearranged registers so that their "opcode" matches 3 LSBs of superregister number (with a few exceptions described at the beginning of x86reg.dat). This allows to lookup opcodes in regval() with O(1) complexity, and removes need in rXXXop.inc files.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@25627 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/x86_64/r8664int.inc')
-rw-r--r-- | compiler/x86_64/r8664int.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/x86_64/r8664int.inc b/compiler/x86_64/r8664int.inc index a97d35ea34..83be60c23c 100644 --- a/compiler/x86_64/r8664int.inc +++ b/compiler/x86_64/r8664int.inc @@ -68,14 +68,15 @@ 'r15b', 'r15w', 'r15d', -'rip', -'eip', -'cs', -'ds', 'es', +'cs', 'ss', +'ds', 'fs', 'gs', +'flags', +'rip', +'eip', 'dr0', 'dr1', 'dr2', @@ -91,7 +92,6 @@ 'tr5', 'tr6', 'tr7', -'flags', 'st(0)', 'st(1)', 'st(2)', |