Browse Source

- 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 năm trước cách đây
mục cha
commit
767a0f1187
1 tập tin đã thay đổi với 0 bổ sung7 xóa
  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 }
             if (current_settings.cputype<cpu_186) and (op in [OP_MUL,OP_IMUL]) then
               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
                   begin
                     if size in [OS_16,OS_S16] then