Browse Source

* min/max optimization on x86 can be applied now without fastmath as NaN is handled properly now

git-svn-id: trunk@47769 -
florian 4 years ago
parent
commit
6d7d567a25
1 changed files with 0 additions and 2 deletions
  1. 0 2
      compiler/nflw.pas

+ 0 - 2
compiler/nflw.pas

@@ -1597,8 +1597,6 @@ implementation
           not(might_have_sideeffects(left)) and
           not(might_have_sideeffects(left)) and
           ((t1=nil) or tassignmentnode(thenstmnt).left.isequal(tassignmentnode(elsestmnt).left)) and
           ((t1=nil) or tassignmentnode(thenstmnt).left.isequal(tassignmentnode(elsestmnt).left)) and
 {$if defined(i386) or defined(x86_64)}
 {$if defined(i386) or defined(x86_64)}
-          { for now, limit it to fastmath mode as NaN handling is not implemented properly yet }
-          (cs_opt_fastmath in current_settings.optimizerswitches) and
 {$ifdef i386}
 {$ifdef i386}
           (((current_settings.fputype>=fpu_sse) and is_single(tassignmentnode(thenstmnt).left.resultdef)) or
           (((current_settings.fputype>=fpu_sse) and is_single(tassignmentnode(thenstmnt).left.resultdef)) or
            ((current_settings.fputype>=fpu_sse2) and is_double(tassignmentnode(thenstmnt).left.resultdef))
            ((current_settings.fputype>=fpu_sse2) and is_double(tassignmentnode(thenstmnt).left.resultdef))