[PATCH] D52450: [Intrinsic] Add llvm.minnan and llvm.maxnan instrinsic functions

Dan Gohman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 27 16:45:11 PDT 2018


sunfish added a comment.

In https://reviews.llvm.org/D52450#1248681, @tlively wrote:

> That's true, except that if the semantics of the LLVM intrinsics were not as strict as the semantics of the WebAssembly instructions, then there would be no way for programmers to access WebAssembly's exact semantics at the source level, which is the whole point of implementing these intrinsics at all.


Oh, right. So in that case, the existing minnum/maxnum intrinsics do have the same problem. That's probably not easy to fix, because it would require changes to existing implementations on other platforms. So we may have to add wasm-specific versions of these intrinsics after all :-/.


Repository:
  rL LLVM

https://reviews.llvm.org/D52450





More information about the llvm-commits mailing list