* check UseIncDec before generating an INC instruction in tx86addnode.emit_generic_code

git-svn-id: trunk@32057 -
This commit is contained in:
nickysn 2015-10-15 13:11:47 +00:00
parent d80e318945
commit 457107d165

View File

@ -146,7 +146,8 @@ unit nx86add;
if (op=A_ADD) and
(right.location.loc=LOC_CONSTANT) and
(right.location.value=1) and
not(cs_check_overflow in current_settings.localswitches) then
not(cs_check_overflow in current_settings.localswitches) and
UseIncDec then
begin
emit_reg(A_INC,TCGSize2Opsize[opsize],left.location.register);
end