[llvm] [Transforms] Let amdgcn take advantage of sin(-x) --> -sin(x) (PR #79700)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 20:48:46 PST 2024
================
@@ -1023,6 +1023,50 @@ define float @cos_fabs_unary_fneg_f32(float %x) {
ret float %cos
}
+
+; --------------------------------------------------------------------
+; llvm.amdgcn.sin
+; --------------------------------------------------------------------
+declare float @llvm.amdgcn.sin.f32(float) nounwind readnone
+
+; CHECK-NEXT: ret float %cos
----------------
arsenm wrote:
stray / broken check line?
https://github.com/llvm/llvm-project/pull/79700
More information about the llvm-commits
mailing list