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/i8086/r8086rni.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/i8086/r8086rni.inc')
-rw-r--r-- | compiler/i8086/r8086rni.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/i8086/r8086rni.inc b/compiler/i8086/r8086rni.inc index f7c780280f..acf306aa50 100644 --- a/compiler/i8086/r8086rni.inc +++ b/compiler/i8086/r8086rni.inc @@ -57,13 +57,13 @@ 78, 79, 80, +25, 26, 27, 28, 29, 30, 31, -32, 33, 34, 35, @@ -79,4 +79,4 @@ 45, 46, 47, -25 +32 |