Simplify switch as all cases other than default return true. NFC.
authorChad Rosier <mcrosier@codeaurora.org>
Wed, 22 Jul 2015 18:41:57 +0000 (18:41 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Wed, 22 Jul 2015 18:41:57 +0000 (18:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242922 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp

index cdc3ec1ba32e766e25d48b57c3213940b1d286b8..c1ff41c224c90bb7547ebc2e88ce6c820686ce41 100644 (file)
@@ -138,25 +138,15 @@ static bool isUnscaledLdst(unsigned Opc) {
   default:
     return false;
   case AArch64::STURSi:
-    return true;
   case AArch64::STURDi:
-    return true;
   case AArch64::STURQi:
-    return true;
   case AArch64::STURWi:
-    return true;
   case AArch64::STURXi:
-    return true;
   case AArch64::LDURSi:
-    return true;
   case AArch64::LDURDi:
-    return true;
   case AArch64::LDURQi:
-    return true;
   case AArch64::LDURWi:
-    return true;
   case AArch64::LDURXi:
-    return true;
   case AArch64::LDURSWi:
     return true;
   }