Skip to content

Commit 53e48a1

Browse files
committed
Remove InstCombineAtomicRMW.cpp piece for now.
Remove AtomicExpandPass.cpp idempotency optimisation change.
1 parent 7f27654 commit 53e48a1

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

llvm/lib/CodeGen/AtomicExpandPass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,8 +1564,6 @@ bool AtomicExpandImpl::isIdempotentRMW(AtomicRMWInst *RMWI) {
15641564
case AtomicRMWInst::Sub:
15651565
case AtomicRMWInst::Or:
15661566
case AtomicRMWInst::Xor:
1567-
case AtomicRMWInst::USubCond:
1568-
case AtomicRMWInst::USubSat:
15691567
return C->isZero();
15701568
case AtomicRMWInst::And:
15711569
return C->isMinusOne();

llvm/lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ bool isIdempotentRMW(AtomicRMWInst& RMWI) {
4141
case AtomicRMWInst::Sub:
4242
case AtomicRMWInst::Or:
4343
case AtomicRMWInst::Xor:
44-
case AtomicRMWInst::USubCond:
45-
case AtomicRMWInst::USubSat:
4644
return C->isZero();
4745
case AtomicRMWInst::And:
4846
return C->isMinusOne();

0 commit comments

Comments
 (0)