* x86: BZHI optimisation now sets the subtract and shift nodes to 'do not execute' as they are skipped over.

This commit is contained in:
J. Gareth "Curious Kit" Moreton 2022-11-24 21:30:03 +00:00 committed by FPK
parent 16bd996e74
commit 2a44ffe51b

View File

@ -2051,6 +2051,8 @@ unit nx86add;
secondpass(left);
{ Skip the subtract and shift nodes completely }
Include(right.flags, nf_do_not_execute);
Include(taddnode(right).left.flags, nf_do_not_execute);
{ Helps avoid all the awkward typecasts }
indexnode := tshlshrnode(taddnode(right).left).right;