Skip to content

Commit

Permalink
[AArch64] Delete unused Opcode after D106039
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Jul 20, 2021
1 parent 3924877 commit 0c0549f
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17055,25 +17055,6 @@ static void ReplaceCMP_SWAP_128Results(SDNode *N,
return;
}

unsigned Opcode;
switch (MemOp->getMergedOrdering()) {
case AtomicOrdering::Monotonic:
Opcode = AArch64::CMP_SWAP_128_MONOTONIC;
break;
case AtomicOrdering::Acquire:
Opcode = AArch64::CMP_SWAP_128_ACQUIRE;
break;
case AtomicOrdering::Release:
Opcode = AArch64::CMP_SWAP_128_RELEASE;
break;
case AtomicOrdering::AcquireRelease:
case AtomicOrdering::SequentiallyConsistent:
Opcode = AArch64::CMP_SWAP_128;
break;
default:
llvm_unreachable("Unexpected ordering!");
}

auto Desired = splitInt128(N->getOperand(2), DAG);
auto New = splitInt128(N->getOperand(3), DAG);
SDValue Ops[] = {N->getOperand(1), Desired.first, Desired.second,
Expand Down

0 comments on commit 0c0549f

Please sign in to comment.