[clang] [llvm] [InstCombine] Combine llvm.sin/llvm.cos libcall pairs into llvm.sincos (PR #184760)

Kito Cheng via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 26 23:51:50 PDT 2026


================
@@ -3,6 +3,8 @@
 #pragma OPENCL EXTENSION cl_khr_fp16 : enable
 
 // CHECK-LABEL: define{{.*}} void @test_half_builtins
+// sin and cos with the same argument are combined into sincos
----------------
kito-cheng wrote:

I only split out sin/cos to prevent disturb this testcase too much :)

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


More information about the cfe-commits mailing list