[llvm] AMDGPU: Drop and upgrade llvm.amdgcn.atomic.csub/cond.sub to atomicrmw (PR #105553)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 20 08:52:00 PDT 2025
================
@@ -1150,7 +1150,15 @@ Value *SplitPtrStructs::handleMemoryInst(Instruction *I, Value *Arg, Value *Ptr,
case AtomicRMWInst::UIncWrap:
case AtomicRMWInst::UDecWrap:
report_fatal_error("wrapping increment/decrement not supported for "
- "buffer resources and should've ben expanded away");
+ "buffer resources and should've been expanded away");
+ break;
+ case AtomicRMWInst::USubCond:
+ report_fatal_error("conditional subtract not supported for buffer "
----------------
jayfoad wrote:
But CSUB (now known as SUB_CLAMP) corresponds to usub_sat not usub_cond.
https://github.com/llvm/llvm-project/pull/105553
More information about the llvm-commits
mailing list