[all-commits] [llvm/llvm-project] 9a592d: [NVPTX] lower VECREDUCE min/max to 3-input on sm_1...

Princeton Ferro via All-commits all-commits at lists.llvm.org
Wed Aug 6 21:45:43 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a592d9a849dacf02ff571c81f2b3a805e9d13e5
      https://github.com/llvm/llvm-project/commit/9a592d9a849dacf02ff571c81f2b3a805e9d13e5
  Author: Princeton Ferro <pferro at nvidia.com>
  Date:   2025-08-06 (Wed, 06 Aug 2025)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
    M llvm/lib/Target/NVPTX/NVPTXISelLowering.h
    M llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
    M llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.h
    M llvm/test/CodeGen/NVPTX/reduction-intrinsics.ll

  Log Message:
  -----------
  [NVPTX] lower VECREDUCE min/max to 3-input on sm_100+ (#136253)

Add support for 3-input fmaxnum/fminnum/fmaximum/fminimum introduced in
PTX 8.8 for sm_100+:
- Use a tree reduction when 3-input operations are supported and the
  reduction has the `reassoc` flag.
- If not on sm_100+/PTX 8.8, fallback to 2-input operations and use the
  default shuffle reduction.



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