From 6b7593d7d0db484fa7c4423ae75ce0912a05b3e2 Mon Sep 17 00:00:00 2001 From: nickysn Date: Thu, 4 May 2017 14:43:18 +0000 Subject: [PATCH] + support the SETcc instructions in TX86AsmOptimizer.RegLoadedWithNewValue git-svn-id: trunk@36081 - --- compiler/x86/aoptx86.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/x86/aoptx86.pas b/compiler/x86/aoptx86.pas index 48284f860b..856ceac8b5 100644 --- a/compiler/x86/aoptx86.pas +++ b/compiler/x86/aoptx86.pas @@ -471,7 +471,8 @@ unit aoptx86; {$endif not x86_64} ((p.opcode = A_LFS) and (reg=NR_FS) and not(RegInRef(reg,p.oper[0]^.ref^))) or ((p.opcode = A_LGS) and (reg=NR_GS) and not(RegInRef(reg,p.oper[0]^.ref^))) or - ((p.opcode = A_LSS) and (reg=NR_SS) and not(RegInRef(reg,p.oper[0]^.ref^))); + ((p.opcode = A_LSS) and (reg=NR_SS) and not(RegInRef(reg,p.oper[0]^.ref^))) or + ((p.opcode = A_SETcc) and (p.oper[0]^.typ=top_reg) and Reg1WriteOverwritesReg2Entirely(p.oper[0]^.reg,reg)); end;