瀏覽代碼

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

J. Gareth "Curious Kit" Moreton 2 年之前
父節點
當前提交
b4cad0cbe4
共有 1 個文件被更改,包括 2 次插入0 次删除
  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 }