[llvm] r247989 - [AArch64] Reorder cases to improve readability. NFC.

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


Author: mcrosier
Date: Fri Sep 18 09:15:19 2015
New Revision: 247989

URL: http://llvm.org/viewvc/llvm-project?rev=247989&view=rev
Log:
[AArch64] Reorder cases to improve readability. 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=247989&r1=247988&r2=247989&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp Fri Sep 18 09:15:19 2015
@@ -1393,6 +1393,10 @@ bool AArch64InstrInfo::getMemOpBaseRegIm
     Width = 1;
     Scale = 1;
     break;
+  case AArch64::LDRQui:
+  case AArch64::STRQui:
+    Scale = Width = 16;
+    break;
   case AArch64::LDRXui:
   case AArch64::LDRDui:
   case AArch64::STRXui:
@@ -1405,21 +1409,17 @@ bool AArch64InstrInfo::getMemOpBaseRegIm
   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::LDRQui:
-  case AArch64::STRQui:
-    Scale = Width = 16;
+  case AArch64::LDRBui:
+  case AArch64::LDRBBui:
+  case AArch64::STRBui:
+  case AArch64::STRBBui:
+    Scale = Width = 1;
     break;
   };
 




More information about the llvm-commits mailing list