瀏覽代碼

+ also recognize sbb reg,reg as writing a new value in the register in TX86AsmOptimizer.RegLoadedWithNewValue

git-svn-id: trunk@36119 -
nickysn 8 年之前
父節點
當前提交
b882ba5fd2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/x86/aoptx86.pas

+ 1 - 1
compiler/x86/aoptx86.pas

@@ -520,7 +520,7 @@ unit aoptx86;
             (p.opcode = A_FNSTSW)) and
            (p.oper[0]^.typ=top_reg) and
            Reg1WriteOverwritesReg2Entirely(p.oper[0]^.reg,reg)) or
-          (((p.opcode = A_XOR) or (p.opcode = A_SUB)) and
+          (((p.opcode = A_XOR) or (p.opcode = A_SUB) or (p.opcode = A_SBB)) and
            (p.oper[0]^.typ=top_reg) and (p.oper[1]^.typ=top_reg) and
            (p.oper[0]^.reg=p.oper[1]^.reg) and
            Reg1WriteOverwritesReg2Entirely(p.oper[1]^.reg,reg));