preames wrote: Purely a side comment... If we knew we had NoNans from fastmath, we could promote. However, we don't have that information in the opcode, and the resulting codegen from expansion seems better anyways. https://github.com/llvm/llvm-project/pull/106659