[llvm] [InstCombine] Fold tan(x) * cos(x) => sin(x) (PR #136319)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 1 02:22:16 PDT 2025


================
@@ -947,6 +947,14 @@ Instruction *InstCombinerImpl::foldFMulReassoc(BinaryOperator &I) {
     return BinaryOperator::CreateFMulFMF(XX, Y, &I);
   }
 
+  // tan(X) * cos(X) -> sin(X)
+  if (match(&I,
----------------
amordo wrote:

Applied changes in 4715cb89ac9b690cb43118b7900eb971d76b35f8
Is it resolved and PR could be merged?

https://github.com/llvm/llvm-project/pull/136319


More information about the llvm-commits mailing list