Quick fix for the OptPushPop bug reported in Issue #337.

This commit is contained in:
acqn 2020-01-01 23:44:35 +08:00 committed by Oliver Schmidt
parent 9559625ee8
commit 6d530931bf

View File

@ -1968,7 +1968,7 @@ unsigned OptPushPop (CodeSeg* S)
/* Remember we had changes */
++Changes;
} else if ((E->Info & OF_CBRA) == 0 &&
} else if (!CE_UseLoadFlags (E) &&
(!RegAUsed (S, I) || !ChgA)) {
/* We can remove the PHA and PLA instructions */