I am currently implementing an optimization which aims at exploiting the commutativity of certain standard dialect operations, such as std.addf or std.mulf.
However, I noticed that while operations like std.addi or std.muli have the commutative trait attached to them, std.addf and std.mulf don’t have that trait and I was wondering why. Does it have to do with C++ seemingly not enforcing floating point commutativity either, as discussed here? Or is there a different reason?
I tried checking the docs and this discourse, but couldn’t find anything dealing with this in particular. So please feel free to tell me if it’s some trivial reason that I’m not aware of right now.
Thank you in advance!