[PATCH] D85392: [WebAssembly][ConstantFolding] Fold fp-to-int truncation intrinsics

Thomas Lively via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 20:09:03 PDT 2020


tlively created this revision.
tlively added reviewers: aheejin, dschuff.
Herald added subscribers: llvm-commits, sunfish, hiraditya, jgravelle-google, sbc100.
Herald added a project: LLVM.
tlively requested review of this revision.

Constant fold both the trapping and saturating versions of the
WebAssembly truncation intrinsics. The tests are adapted from the
WebAssembly spec tests for the corresponding instructions.

Requested in PR46982.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85392

Files:
  llvm/lib/Analysis/ConstantFolding.cpp
  llvm/test/Analysis/ConstantFolding/WebAssembly/trunc.ll
  llvm/test/Analysis/ConstantFolding/WebAssembly/trunc_saturate.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85392.283475.patch
Type: text/x-patch
Size: 80880 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200806/0c779ad9/attachment-0001.bin>


More information about the llvm-commits mailing list