vzakhari wrote: > while this pass ought to only fuse sin and cos calls if their operands are exactly the same SSA values. I think this is reasonable for this pass. It is the CSE's job to optimize other cases. https://github.com/llvm/llvm-project/pull/161413