run branch fixer again after replacing BRA by JMP. should fix #1936
This commit is contained in:
@@ -850,6 +850,10 @@ static unsigned RunOptGroup7 (CodeSeg* S)
|
||||
C += RunOptFunc (S, &DOptJumpCascades, 1);
|
||||
C += RunOptFunc (S, &DOptBranchDist2, 1);
|
||||
|
||||
/* Adjust branch distances again, since the previous step may change code
|
||||
between branches */
|
||||
C += RunOptFunc (S, &DOptBranchDist, 3);
|
||||
|
||||
Changes += C;
|
||||
/* If we had changes, we must run dead code elimination again,
|
||||
** since the changes may have introduced dead code.
|
||||
|
||||
Reference in New Issue
Block a user