[llvm] [mlir] Add usub_cond and usub_sat operations to atomicrmw (PR #105568)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 5 09:50:45 PDT 2024
================
@@ -41,6 +41,8 @@ bool isIdempotentRMW(AtomicRMWInst& RMWI) {
case AtomicRMWInst::Sub:
case AtomicRMWInst::Or:
case AtomicRMWInst::Xor:
+ case AtomicRMWInst::USubCond:
+ case AtomicRMWInst::USubSat:
----------------
anjenner wrote:
I've removed this piece for now. I'm happy to add it back with a separate change, but it looks from the tests like we don't actually want to use idempotency optimizations with atomicrmw operations at all so maybe nothing needs to be done here.
https://github.com/llvm/llvm-project/pull/105568
More information about the llvm-commits
mailing list