[PATCH] D60877: [GlobalISel][AArch64] Legalize v8s8 loads
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 18 14:14:12 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL358714: [GlobalISel][AArch64] Legalize v8s8 loads (authored by paquette, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D60877?vs=195769&id=195814#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60877/new/
https://reviews.llvm.org/D60877
Files:
llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp
llvm/trunk/test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir
Index: llvm/trunk/test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir
===================================================================
--- llvm/trunk/test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir
+++ llvm/trunk/test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir
@@ -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 @@
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
+
+...
Index: llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp
===================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp
+++ llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp
@@ -224,6 +224,7 @@
{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},
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60877.195814.patch
Type: text/x-patch
Size: 1794 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190418/ccc2d9be/attachment.bin>
More information about the llvm-commits
mailing list