[llvm] r247988 - [AArch64] Remove some redundant cases. NFC.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 07:13:19 PDT 2015


Author: mcrosier
Date: Fri Sep 18 09:13:18 2015
New Revision: 247988

URL: http://llvm.org/viewvc/llvm-project?rev=247988&view=rev
Log:
[AArch64] Remove some redundant cases. NFC.

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp?rev=247988&r1=247987&r2=247988&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp Fri Sep 18 09:13:18 2015
@@ -1394,41 +1394,33 @@ bool AArch64InstrInfo::getMemOpBaseRegIm
     Scale = 1;
     break;
   case AArch64::LDRXui:
+  case AArch64::LDRDui:
   case AArch64::STRXui:
+  case AArch64::STRDui:
     Scale = Width = 8;
     break;
   case AArch64::LDRWui:
+  case AArch64::LDRSui:
   case AArch64::STRWui:
+  case AArch64::STRSui:
     Scale = Width = 4;
     break;
   case AArch64::LDRBui:
+  case AArch64::LDRBBui:
   case AArch64::STRBui:
+  case AArch64::STRBBui:
     Scale = Width = 1;
     break;
   case AArch64::LDRHui:
+  case AArch64::LDRHHui:
   case AArch64::STRHui:
+  case AArch64::STRHHui:
     Scale = Width = 2;
     break;
-  case AArch64::LDRSui:
-  case AArch64::STRSui:
-    Scale = Width = 4;
-    break;
-  case AArch64::LDRDui:
-  case AArch64::STRDui:
-    Scale = Width = 8;
-    break;
   case AArch64::LDRQui:
   case AArch64::STRQui:
     Scale = Width = 16;
     break;
-  case AArch64::LDRBBui:
-  case AArch64::STRBBui:
-    Scale = Width = 1;
-    break;
-  case AArch64::LDRHHui:
-  case AArch64::STRHHui:
-    Scale = Width = 2;
-    break;
   };
 
   BaseReg = LdSt->getOperand(1).getReg();




More information about the llvm-commits mailing list