[PATCH] D41659: Implementing missing trigonometric optimizations

ADIL ARUN DANGUI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 00:53:12 PST 2018


cs15btech11041 created this revision.

Here we have implemented the following missing trigonometric optimizations.

1. tan(x)*cos(x)=sin(x)
2. sin(x)*cos(x) = sin(2*x)/2
3. sin(x)/tan(x)=cos(x);
4. tan(x)/sin(x)=1/cos(x);


Repository:
  rL LLVM

https://reviews.llvm.org/D41659

Files:
  lib/Transforms/InstCombine/InstCombineInternal.h
  lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  lib/Transforms/InstCombine/InstructionCombining.cpp
  test/Transforms/InstCombine/trigonometric-optimizations.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41659.128397.patch
Type: text/x-patch
Size: 42156 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180102/ec3f34bc/attachment.bin>


More information about the llvm-commits mailing list