BR 2413265: don't pessimize displacements
authorH. Peter Anvin <hpa@linux.intel.com>
Thu, 26 Feb 2009 22:48:03 +0000 (14:48 -0800)
committerH. 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

index d4e7f25..6ff7428 100644 (file)
@@ -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;