Fix a very bad typo. Since the register number was off by one, the ARM
authorBob Wilson <bob.wilson@apple.com>
Sat, 20 Mar 2010 06:05:13 +0000 (06:05 +0000)
committerBob Wilson <bob.wilson@apple.com>
Sat, 20 Mar 2010 06:05:13 +0000 (06:05 +0000)
load/store optimizer would incorrectly think that registers D26 and D28
were consecutive and would generate a VLDM instruction to load them.
The assembler was not convinced.

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

lib/Target/ARM/ARMBaseRegisterInfo.cpp

index 11e1c4862b414df1869fd3ae7f04a7de463277bc..b380c954d606271c3fec7bb580e27b1b04045ed8 100644 (file)
@@ -80,7 +80,7 @@ unsigned ARMBaseRegisterInfo::getRegisterNumbering(unsigned RegEnum,
   case D23: return 23;
   case D24: return 24;
   case D25: return 25;
-  case D26: return 27;
+  case D26: return 26;
   case D27: return 27;
   case D28: return 28;
   case D29: return 29;