Explorar o código

* make loop unrolling dependent on the cpu optimization type instead of the instruction set

git-svn-id: trunk@25211 -
florian %!s(int64=12) %!d(string=hai) anos
pai
achega
912268b1b9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/optloop.pas

+ 1 - 1
compiler/optloop.pas

@@ -50,7 +50,7 @@ unit optloop;
       begin
 {$ifdef i386}
         { multiply by 2 for CPUs with a long pipeline }
-        if current_settings.cputype in [cpu_Pentium4] then
+        if current_settings.optimizecputype in [cpu_Pentium4] then
           number_unrolls:=60 div node_count(node)
         else
 {$endif i386}