[PATCH] D41283: [InstCombine] Missed optimization in math expression: tan(a) * cos(a) == sin(a)

Dmitry Venikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 11 00:36:19 PST 2018


Quolyk updated this revision to Diff 129401.
Quolyk added a comment.

This needs to be merged first, because it introduces m_LibFunc match, that would be useful for other optimizations.


https://reviews.llvm.org/D41283

Files:
  include/llvm/IR/PatternMatch.h
  lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  test/Transforms/InstCombine/fmul-tan-cos.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41283.129401.patch
Type: text/x-patch
Size: 8348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180111/5d476db9/attachment.bin>


More information about the llvm-commits mailing list