From 3e455d8ae0747e2ce5d9dd5b534bd72d98782ae4 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Wed, 22 Jul 2015 18:41:57 +0000 Subject: [PATCH] Simplify switch as all cases other than default return true. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242922 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp b/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp index cdc3ec1ba32..c1ff41c224c 100644 --- a/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp +++ b/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp @@ -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; } -- 2.34.1