[llvm] r357059 - [AArch64] Adds cases for LDRSHWui and LDRSHXui to getMemOpInfo
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 27 03:39:03 PDT 2019
Author: s.desmalen
Date: Wed Mar 27 03:39:03 2019
New Revision: 357059
URL: http://llvm.org/viewvc/llvm-project?rev=357059&view=rev
Log:
[AArch64] Adds cases for LDRSHWui and LDRSHXui to getMemOpInfo
This patch also adds cases PRFUMi and PRFMui.
This change was discussed in https://reviews.llvm.org/D59635.
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=357059&r1=357058&r2=357059&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp Wed Mar 27 03:39:03 2019
@@ -1964,6 +1964,7 @@ bool AArch64InstrInfo::getMemOpInfo(unsi
MinOffset = -256;
MaxOffset = 255;
break;
+ case AArch64::PRFUMi:
case AArch64::LDURXi:
case AArch64::LDURDi:
case AArch64::STURXi:
@@ -2033,6 +2034,7 @@ bool AArch64InstrInfo::getMemOpInfo(unsi
MinOffset = -64;
MaxOffset = 63;
break;
+ case AArch64::PRFMui:
case AArch64::LDRXui:
case AArch64::LDRDui:
case AArch64::STRXui:
@@ -2065,6 +2067,8 @@ bool AArch64InstrInfo::getMemOpInfo(unsi
break;
case AArch64::LDRHui:
case AArch64::LDRHHui:
+ case AArch64::LDRSHWui:
+ case AArch64::LDRSHXui:
case AArch64::STRHui:
case AArch64::STRHHui:
Scale = Width = 2;
@@ -2073,6 +2077,8 @@ bool AArch64InstrInfo::getMemOpInfo(unsi
break;
case AArch64::LDRBui:
case AArch64::LDRBBui:
+ case AArch64::LDRSBWui:
+ case AArch64::LDRSBXui:
case AArch64::STRBui:
case AArch64::STRBBui:
Scale = Width = 1;
More information about the llvm-commits
mailing list