فهرست منبع

* unnecessary loads of constants are now also remove by
removePrevNotUsedLoad()

Jonas Maebe 24 سال پیش
والد
کامیت
f9e7a027b9
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      compiler/i386/csopt386.pas

+ 6 - 2
compiler/i386/csopt386.pas

@@ -1305,7 +1305,7 @@ var
 begin
   if getLastInstruction(p,hp1) then
     with pTaiprop(hp1.optInfo)^.regs[reg] do
-      if (typ in [con_ref,con_invalid]) and
+      if (typ in [con_ref,con_invalid,con_const]) and
          (nrOfMods = 1) and
          (rState = pTaiprop(startmod.optInfo)^.regs[reg].rState) and
          (not(check) or
@@ -1956,7 +1956,11 @@ End.
 
 {
   $Log$
-  Revision 1.22  2001-11-30 16:35:02  jonas
+  Revision 1.23  2001-12-04 15:58:13  jonas
+    * unnecessary loads of constants are now also remove by
+      removePrevNotUsedLoad()
+
+  Revision 1.22  2001/11/30 16:35:02  jonas
     * added missing allocregbetween() call for a memtoreg() optimization
 
   Revision 1.21  2001/10/27 10:20:43  jonas