Browse Source

* x86: 'and not' optimisation now sets the NOT node to 'do not execute' as it is skipped over

J. Gareth "Curious Kit" Moreton 2 years ago
parent
commit
16bd996e74
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/x86/nx86add.pas

+ 2 - 0
compiler/x86/nx86add.pas

@@ -1974,7 +1974,9 @@ unit nx86add;
                      swapleftright;
 
                    secondpass(left);
+
                    { Skip the not node completely }
+                   Include(right.flags, nf_do_not_execute);
                    secondpass(tnotnode(right).left);
 
                    { allocate registers }