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

Sushant Gokhale via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 19 21:03:44 PDT 2026


sushgokh wrote:

@kito-cheng Here is a short reproducer. 
transform: [here](https://godbolt.org/z/3rx1szTh6)
asm: [here](https://godbolt.org/z/Y4cv5dhvT)
llvm-mca analysis: [here](https://godbolt.org/z/jnM1Pnq4v)

As said above, this is causing 2-2.5% regression with SPEC17 526.blender/510.parest in -flto -ffast-math mode on `neoverse-v2`

`@llvm.sincos.f64` is not getting converted into float counterparts, as was happening before

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


More information about the cfe-commits mailing list