forked from OSchip/llvm-project
[AArch64] Remove some redundant cases. NFC.
llvm-svn: 247988
This commit is contained in:
parent
b22084e113
commit
84a0afdeff
|
@ -1394,41 +1394,33 @@ bool AArch64InstrInfo::getMemOpBaseRegImmOfsWidth(
|
|||
Scale = 1;
|
||||
break;
|
||||
case AArch64::LDRXui:
|
||||
case AArch64::LDRDui:
|
||||
case AArch64::STRXui:
|
||||
case AArch64::STRDui:
|
||||
Scale = Width = 8;
|
||||
break;
|
||||
case AArch64::LDRWui:
|
||||
case AArch64::STRWui:
|
||||
Scale = Width = 4;
|
||||
break;
|
||||
case AArch64::LDRBui:
|
||||
case AArch64::STRBui:
|
||||
Scale = Width = 1;
|
||||
break;
|
||||
case AArch64::LDRHui:
|
||||
case AArch64::STRHui:
|
||||
Scale = Width = 2;
|
||||
break;
|
||||
case AArch64::LDRSui:
|
||||
case AArch64::STRWui:
|
||||
case AArch64::STRSui:
|
||||
Scale = Width = 4;
|
||||
break;
|
||||
case AArch64::LDRDui:
|
||||
case AArch64::STRDui:
|
||||
Scale = Width = 8;
|
||||
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;
|
||||
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();
|
||||
|
|
Loading…
Reference in New Issue