[PATCH] D52385: [WebAssembly] Add llvm.wasm.{min|max} intrinsic functions
Thomas Lively via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 21 17:32:21 PDT 2018
tlively created this revision.
tlively added reviewers: aheejin, dschuff.
Herald added subscribers: llvm-commits, sunfish, jgravelle-google, sbc100.
These intrinsics are similar to llvm.minnum and llvm.maxnum except
that they follow WebAssembly's NaN propagating rules. Loosely, if
either argument is a NaN, the result is also a NaN. Depends on https://reviews.llvm.org/D52325.
Repository:
rL LLVM
https://reviews.llvm.org/D52385
Files:
include/llvm/IR/IntrinsicsWebAssembly.td
lib/Analysis/ConstantFolding.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/Analysis/ConstantFolding/min-max.ll
test/CodeGen/WebAssembly/simd-arith.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52385.166584.patch
Type: text/x-patch
Size: 8096 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180922/7e14d275/attachment.bin>
More information about the llvm-commits
mailing list