File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -751,12 +751,12 @@ class AtomicRMWInst : public Instruction {
751
751
// / *p = ((old == 0) || (old u> v)) ? v : (old - 1)
752
752
UDecWrap,
753
753
754
- // / Subtract only if result would be positive .
754
+ // / Subtract only if no unsigned overflow .
755
755
// / *p = (old u>= v) ? old - v : old
756
756
USubCond,
757
757
758
- // / Subtract with clamping of negative results to zero.
759
- // / *p = (old u>= v) ? old - v : 0
758
+ // / *p = usub.sat(old, v)
759
+ // / \p usub.sat matches the behavior of \p llvm.usub.sat.*.
760
760
USubSat,
761
761
762
762
FIRST_BINOP = Xchg,
Original file line number Diff line number Diff line change @@ -1807,7 +1807,7 @@ static ArrayRef<RTLIB::Libcall> GetRMWLibcall(AtomicRMWInst::BinOp Op) {
1807
1807
case AtomicRMWInst::UDecWrap:
1808
1808
case AtomicRMWInst::USubCond:
1809
1809
case AtomicRMWInst::USubSat:
1810
- // No atomic libcalls are available for max/min/umax/umin .
1810
+ // No atomic libcalls are available for these .
1811
1811
return {};
1812
1812
}
1813
1813
llvm_unreachable (" Unexpected AtomicRMW operation." );
You can’t perform that action at this time.
0 commit comments