[llvm] r358714 - [GlobalISel][AArch64] Legalize v8s8 loads
Jessica Paquette via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 18 14:13:58 PDT 2019
Author: paquette
Date: Thu Apr 18 14:13:58 2019
New Revision: 358714
URL: http://llvm.org/viewvc/llvm-project?rev=358714&view=rev
Log:
[GlobalISel][AArch64] Legalize v8s8 loads
Add legalizer support for loads of v8s8 and update legalize-load-store.mir.
Differential Revision: https://reviews.llvm.org/D60877
Modified:
llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp
llvm/trunk/test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir
Modified: llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp?rev=358714&r1=358713&r2=358714&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp Thu Apr 18 14:13:58 2019
@@ -224,6 +224,7 @@ AArch64LegalizerInfo::AArch64LegalizerIn
{s32, p0, 32, 8},
{s64, p0, 64, 8},
{p0, p0, 64, 8},
+ {v8s8, p0, 64, 8},
{v16s8, p0, 128, 8},
{v4s16, p0, 64, 8},
{v8s16, p0, 128, 8},
Modified: llvm/trunk/test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir?rev=358714&r1=358713&r2=358714&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir (original)
+++ llvm/trunk/test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir Thu Apr 18 14:13:58 2019
@@ -48,6 +48,11 @@
ret <16 x i8> %res
}
+ define <8 x i8> @load_8xi8(<8 x i8>* %ptr) {
+ %res = load <8 x i8>, <8 x i8>* %ptr
+ ret <8 x i8> %res
+ }
+
...
---
name: test_load
@@ -319,3 +324,23 @@ body: |
RET_ReallyLR implicit $q0
...
+---
+name: load_8xi8
+alignment: 2
+tracksRegLiveness: true
+machineFunctionInfo: {}
+body: |
+ bb.1 (%ir-block.0):
+ liveins: $x0
+ ; CHECK-LABEL: name: load_8xi8
+ ; CHECK: liveins: $x0
+ ; CHECK: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
+ ; CHECK: [[LOAD:%[0-9]+]]:_(<8 x s8>) = G_LOAD [[COPY]](p0) :: (load 8 from %ir.ptr)
+ ; CHECK: $d0 = COPY [[LOAD]](<8 x s8>)
+ ; CHECK: RET_ReallyLR implicit $d0
+ %0:_(p0) = COPY $x0
+ %1:_(<8 x s8>) = G_LOAD %0(p0) :: (load 8 from %ir.ptr)
+ $d0 = COPY %1(<8 x s8>)
+ RET_ReallyLR implicit $d0
+
+...
More information about the llvm-commits
mailing list