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/i386/r386int.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/i386/r386int.inc')
-rw-r--r-- | compiler/i386/r386int.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/i386/r386int.inc b/compiler/i386/r386int.inc index 51536181fb..3dbec0852c 100644 --- a/compiler/i386/r386int.inc +++ b/compiler/i386/r386int.inc @@ -24,13 +24,14 @@ 'ebp', 'sp', 'esp', -'eip', -'cs', -'ds', 'es', +'cs', 'ss', +'ds', 'fs', 'gs', +'flags', +'eip', 'dr0', 'dr1', 'dr2', @@ -46,7 +47,6 @@ 'tr5', 'tr6', 'tr7', -'flags', 'st(0)', 'st(1)', 'st(2)', |