OSDN Git Service

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)
commit86cdbc9c29a572d422815f55fd89ff7510d1e3e8
tree95c6a6f4a961199d40a3133b07b0ac0323023408
parent55a98b00c1a383309ade29fe2eb329c4c8d6a9d3
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175283 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/TargetLoweringBase.cpp
test/CodeGen/X86/sincos-opt.ll