[llvm] [NVPTX] extend type support for nvvm.{min, max, mulhi, sad} (PR #78385)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 17 10:57:10 PST 2024
================
@@ -4132,19 +4133,21 @@ void llvm::UpgradeIntrinsicCall(CallBase *CI, Function *NewFn) {
Value *Val = CI->getArgOperand(1);
Rep = Builder.CreateAtomicRMW(AtomicRMWInst::FAdd, Ptr, Val, MaybeAlign(),
AtomicOrdering::SequentiallyConsistent);
- } else if (IsNVVM && (Name == "max.i" || Name == "max.ll" ||
- Name == "max.ui" || Name == "max.ull")) {
+ } else if (IsNVVM &&
+ (Name == "max.s" || Name == "max.i" || Name == "max.ll" ||
+ Name == "max.us" || Name == "max.ui" || Name == "max.ull")) {
----------------
Artem-B wrote:
`.. && Name.consume_front("max.") ` would reduce the number of unnecessary comparisons on non-matching names.
https://github.com/llvm/llvm-project/pull/78385
More information about the llvm-commits
mailing list