projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed2dcb8
)
BR 2413265: don't pessimize displacements
author
H. Peter Anvin
<hpa@linux.intel.com>
Thu, 26 Feb 2009 22:48:03 +0000
(14:48 -0800)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Thu, 26 Feb 2009 22:48:03 +0000
(14:48 -0800)
Optimize displacements, don't pessimize them. When running in the
optimizer, we always keep track of when a reference is forward. That
doesn't mean it is unknown.
assemble.c
patch
|
blob
|
history
diff --git
a/assemble.c
b/assemble.c
index d4e7f25c02af3692577def8ff08fd2ae32fd4b23..6ff74284847474153645b40bcc26b4beebf551f7 100644
(file)
--- a/
assemble.c
+++ b/
assemble.c
@@
-2103,7
+2103,7
@@
static int matches(const struct itemplate *itemp, insn * instruction, int bits)
static ea *process_ea(operand * input, ea * output, int bits,
int addrbits, int rfield, int32_t rflags)
{
- bool forw_ref = !!(input->opflags & OPFLAG_
FORWARD
);
+ bool forw_ref = !!(input->opflags & OPFLAG_
UNKNOWN
);
output->rip = false;