]> granicus.if.org Git - llvm/commitdiff
[Target/MIPS] Kill dead code, no functional change intended.
authorDavide Italiano <davide@freebsd.org>
Fri, 24 Feb 2017 18:48:10 +0000 (18:48 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 24 Feb 2017 18:48:10 +0000 (18:48 +0000)
Hopefully placates gcc with -Werror.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296153 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsISelLowering.cpp

index 1e72f4e47ecde2ba04072277c04e6cecbc37c3a2..71a68946582382cd80ba4b8ccea885e605ff5295 100644 (file)
@@ -1437,17 +1437,6 @@ MachineBasicBlock *MipsTargetLowering::emitAtomicCmpSwapPartword(
   unsigned AtomicOp = MI.getOpcode() == Mips::ATOMIC_CMP_SWAP_I8_PSEUDO
                           ? Mips::ATOMIC_CMP_SWAP_I8_FRAG
                           : Mips::ATOMIC_CMP_SWAP_I16_FRAG;
-  unsigned LL, SC;
-
-  if (isMicroMips) {
-    LL = Mips::LL_MM;
-    SC = Mips::SC_MM;
-  } else {
-    LL = Subtarget.hasMips32r6() ? (ArePtrs64bit ? Mips::LL64_R6 : Mips::LL_R6)
-                                 : (ArePtrs64bit ? Mips::LL64 : Mips::LL);
-    SC = Subtarget.hasMips32r6() ? (ArePtrs64bit ? Mips::SC64_R6 : Mips::SC_R6)
-                                 : (ArePtrs64bit ? Mips::SC64 : Mips::SC);
-  }
 
   // insert new blocks after the current block
   const BasicBlock *LLVM_BB = BB->getBasicBlock();