BR 2420167: jmp not always optimized

Begin by assuming short jumps are possible to prevent suboptimal convergence.
This commit is contained in:
Victor van den Elzen 2009-02-23 04:35:00 +01:00
parent 79b5972824
commit ccafc3c4b7

View File

@ -262,6 +262,11 @@ static bool jmp_match(int32_t segment, int64_t offset, int bits,
return false;
isize = calcsize(segment, offset, bits, ins, code);
if (ins->oprs[0].segment == NO_SEG)
/* Be optimistic in pass 1 */
return true;
if (ins->oprs[0].segment != segment)
return false;