Browse Source

* i386: Fixed detection of a peephole optimization using CMOV.

git-svn-id: trunk@32115 -
yury 9 years ago
parent
commit
6537b99ac3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/i386/popt386.pas

+ 1 - 1
compiler/i386/popt386.pas

@@ -2066,7 +2066,7 @@ begin
                                   (taicpu(hp2).condition=C_None) and
                                   (taicpu(hp2).condition=C_None) and
                                   { real label and jump, no further references to the
                                   { real label and jump, no further references to the
                                     label are allowed }
                                     label are allowed }
-                                  (tasmlabel(taicpu(p).oper[0]^.ref^.symbol).getrefs=2) and
+                                  (tasmlabel(taicpu(p).oper[0]^.ref^.symbol).getrefs=1) and
                                   FindLabel(tasmlabel(taicpu(p).oper[0]^.ref^.symbol),hp1) then
                                   FindLabel(tasmlabel(taicpu(p).oper[0]^.ref^.symbol),hp1) then
                                    begin
                                    begin
                                      l:=0;
                                      l:=0;