소스 검색

* 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 }