Date: Sat, 15 Sep 2012 17:02:06 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r240531 - head/contrib/llvm/lib/Target/X86 Message-ID: <201209151702.q8FH26Aw091457@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Sat Sep 15 17:02:05 2012 New Revision: 240531 URL: http://svn.freebsd.org/changeset/base/240531 Log: 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. MFC after: 1 week Modified: head/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp Modified: head/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp ============================================================================== --- head/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp Sat Sep 15 16:24:03 2012 (r240530) +++ head/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp Sat Sep 15 17:02:05 2012 (r240531) @@ -643,7 +643,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?201209151702.q8FH26Aw091457>