Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2012 20:03:13 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r240897 - stable/9/contrib/llvm/lib/Target/X86
Message-ID:  <201209242003.q8OK3Dfj088317@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Mon Sep 24 20:03:13 2012
New Revision: 240897
URL: http://svn.freebsd.org/changeset/base/240897

Log:
  MFC r240531:
  
  Pull in r163967 from upstream llvm trunk:
  
    X86: Emitting x87 fsin/fcos for sinf/cosf is not safe without unsafe
    fp math.
  
  This should make clang emit calls to libm for sinf/cosf by default.

Modified:
  stable/9/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp
Directory Properties:
  stable/9/contrib/llvm/   (props changed)

Modified: stable/9/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp
==============================================================================
--- stable/9/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp	Mon Sep 24 20:00:31 2012	(r240896)
+++ stable/9/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp	Mon Sep 24 20:03:13 2012	(r240897)
@@ -641,7 +641,9 @@ X86TargetLowering::X86TargetLowering(X86
     setOperationAction(ISD::FCOPYSIGN, MVT::f32, Expand);
 
     if (!TM.Options.UnsafeFPMath) {
+      setOperationAction(ISD::FSIN           , MVT::f32  , Expand);
       setOperationAction(ISD::FSIN           , MVT::f64  , Expand);
+      setOperationAction(ISD::FCOS           , MVT::f32  , Expand);
       setOperationAction(ISD::FCOS           , MVT::f64  , Expand);
     }
     addLegalFPImmediate(APFloat(+0.0)); // FLD0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209242003.q8OK3Dfj088317>