[clang] Clang: Drop float support from __builtin_elementwise_max (PR #180885)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 12 04:40:38 PST 2026


AaronBallman wrote:

> > Marking as requested changes because it's not clear why these changes are being proposed.
> 
> This topic was talked in: #113133: Should we add `nsz` top `__builtin_elementwise_min`.
> 
> @nikic suggested that we should remove float support from `__builtin_elementwise_min`.
> 
> My suggestion is that we can set `__builtin_elementwise_min` as the the most relaxed flavor: backend can do anything that they want.

This builtin was released over five years ago in Clang, so changing the semantics with no notice is pretty user hostile. It doesn't sound like the float support we have is wrong, just that someone wanted to change the semantics around negative zero handling for better optimization opportunities. Is that correct?

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


More information about the cfe-commits mailing list