فهرست منبع

- rm TODO comment about the IMUL optimization with SHL from
tcg8086.a_op_const_reg, since that optimization is already done in
optimize_op_const, which is called earlier in the same method.

git-svn-id: trunk@26488 -

nickysn 11 سال پیش
والد
کامیت
767a0f1187
1فایلهای تغییر یافته به همراه0 افزوده شده و 7 حذف شده
  1. 0 7
      compiler/i8086/cgcpu.pas

+ 0 - 7
compiler/i8086/cgcpu.pas

@@ -496,13 +496,6 @@ unit cgcpu;
             { 8086 doesn't support 'imul reg,const', so we handle it here }
             { 8086 doesn't support 'imul reg,const', so we handle it here }
             if (current_settings.cputype<cpu_186) and (op in [OP_MUL,OP_IMUL]) then
             if (current_settings.cputype<cpu_186) and (op in [OP_MUL,OP_IMUL]) then
               begin
               begin
-                { TODO: also enable the SHL optimization below }
-    {            if not(cs_check_overflow in current_settings.localswitches) and
-                   ispowerof2(int64(a),power) then
-                  begin
-                    list.concat(taicpu.op_const_reg(A_SHL,TCgSize2OpSize[size],power,reg));
-                    exit;
-                  end;}
                 if op = OP_IMUL then
                 if op = OP_IMUL then
                   begin
                   begin
                     if size in [OS_16,OS_S16] then
                     if size in [OS_16,OS_S16] then