[all-commits] [llvm/llvm-project] acff04: [NVPTX] Add max/minimumnum to ISel (#155804)
Lewis Crawford via All-commits
all-commits at lists.llvm.org
Fri Aug 29 02:32:29 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: acff04955defe719822287e9b854acaa07f1391c
https://github.com/llvm/llvm-project/commit/acff04955defe719822287e9b854acaa07f1391c
Author: Lewis Crawford <lcrawford at nvidia.com>
Date: 2025-08-29 (Fri, 29 Aug 2025)
Changed paths:
M llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
M llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
M llvm/test/CodeGen/NVPTX/math-intrins.ll
Log Message:
-----------
[NVPTX] Add max/minimumnum to ISel (#155804)
Add direct support for the LLVM `maximumnum` and `minimumnum`
intrinsics for NVPTX, rather than lowering them to a sequence of
compare + select instructions.
The `maximumnum` and `minimumnum` intrinsics map directly to PTX
`max`/`min` instructions.
In future, the LLVM `maxnum`/`minnum` intrinsics might need some fix-ups
for sNaN handling added, but currently both `llvm.maxnum` and
`llvm.maximumnum` will map directly to PTX `max` instructions.
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