[all-commits] [llvm/llvm-project] 1ecae1: [ConstantFold] Fold fptoi.sat intrinsics

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Jan 10 08:48:22 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ecae1e62ad016f0c12c204ce312fdfd653ca8cf
      https://github.com/llvm/llvm-project/commit/1ecae1e62ad016f0c12c204ce312fdfd653ca8cf
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-01-10 (Sun, 10 Jan 2021)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/test/Transforms/InstSimplify/fptoi-sat.ll

  Log Message:
  -----------
  [ConstantFold] Fold fptoi.sat intrinsics

The APFloat::convertToInteger() API already implements the desired
saturation semantics.




More information about the All-commits mailing list