[llvm] 0c0549f - [AArch64] Delete unused Opcode after D106039

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 20 12:51:50 PDT 2021


Author: Fangrui Song
Date: 2021-07-20T12:51:44-07:00
New Revision: 0c0549fbb3e910ea28a27d901a40410d048f26ac

URL: https://github.com/llvm/llvm-project/commit/0c0549fbb3e910ea28a27d901a40410d048f26ac
DIFF: https://github.com/llvm/llvm-project/commit/0c0549fbb3e910ea28a27d901a40410d048f26ac.diff

LOG: [AArch64] Delete unused Opcode after D106039

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 267f8a5f9d22..0c1579400665 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -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,


        


More information about the llvm-commits mailing list