[all-commits] [llvm/llvm-project] 514445: [WebAssembly][ConstantFolding] Fold fp-to-int trun...

Thomas Lively via All-commits all-commits at lists.llvm.org
Mon Aug 10 12:40:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 514445e0353e82fa0bd59eeea437499500e232cd
      https://github.com/llvm/llvm-project/commit/514445e0353e82fa0bd59eeea437499500e232cd
  Author: Thomas Lively <tlively at google.com>
  Date:   2020-08-10 (Mon, 10 Aug 2020)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp
    A llvm/test/Analysis/ConstantFolding/WebAssembly/trunc.ll
    A llvm/test/Analysis/ConstantFolding/WebAssembly/trunc_saturate.ll

  Log Message:
  -----------
  [WebAssembly][ConstantFolding] Fold fp-to-int truncation intrinsics

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.

Differential Revision: https://reviews.llvm.org/D85392




More information about the All-commits mailing list