aobolensk wrote: > Add a canonicalization test that preserves sincos when its sine result is unused, ensuring the cosine write is retained. I didn't get this part. In your test sine result is used https://github.com/llvm/llvm-project/pull/232017