[all-commits] [llvm/llvm-project] fd8ae2: Add constant-folding for unary NVVM intrinsics (#1...

Lewis Crawford via All-commits all-commits at lists.llvm.org
Mon Jul 21 03:32:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd8ae2cb76bd0a721eea12767c1a630d465b8495
      https://github.com/llvm/llvm-project/commit/fd8ae2cb76bd0a721eea12767c1a630d465b8495
  Author: Lewis Crawford <lcrawford at nvidia.com>
  Date:   2025-07-21 (Mon, 21 Jul 2025)

  Changed paths:
    M llvm/include/llvm/IR/NVVMIntrinsicUtils.h
    M llvm/lib/Analysis/ConstantFolding.cpp
    A llvm/test/Transforms/InstSimplify/const-fold-nvvm-unary-arithmetic.ll

  Log Message:
  -----------
  Add constant-folding for unary NVVM intrinsics (#141233)

Add support for constant-folding numerous NVVM unary arithmetic
intrinsics (including f, d, and ftz_f variants):
  - nvvm.ceil.*
  - nvvm.fabs.*
  - nvvm.floor.*
  - nvvm.rcp.*
  - nvvm.round.*
  - nvvm.saturate.*
  - nvvm.sqrt.f
  - nvvm.sqrt.rn.*



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list