enable SDISel sincos optimization for GNU environments
authorPaul Redmond <paul.redmond@intel.com>
Fri, 15 Feb 2013 18:45:18 +0000 (18:45 +0000)
committerPaul Redmond <paul.redmond@intel.com>
Fri, 15 Feb 2013 18:45:18 +0000 (18:45 +0000)
commitf29ddfe93f52f0185625659108a960fa01cba139
tree2e00fe6f0e5e82be0cab97b55817f1ff8ef0c53d
parent336cc8b9af9f3805d0c5d98bc5bc4f651977e525
enable SDISel sincos optimization for GNU environments

- add sincos to runtime library if target triple environment is GNU
- added canCombineSinCosLibcall() which checks that sincos is in the RTL and
  if the environment is GNU then unsafe fpmath is enabled (required to
  preserve errno)
- extended sincos-opt lit test

Reviewed by: Hal Finkel

llvm-svn: 175283
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/TargetLoweringBase.cpp
llvm/test/CodeGen/X86/sincos-opt.ll