mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
BR 2420167: jmp not always optimized
Begin by assuming short jumps are possible to prevent suboptimal convergence.
This commit is contained in:
parent
79b5972824
commit
ccafc3c4b7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user