[PATCH] D60534: [AArch64][GlobalISel] Legalization and ISel support for load/stores of vectors of pointers
Amara Emerson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 10 12:37:53 PDT 2019
aemerson created this revision.
aemerson added a reviewer: paquette.
aemerson added a project: LLVM.
Herald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls, javed.absar, rovka.
Loads and store of values with type like <2 x p0> currently don't get imported because SelectionDAG has no knowledge of pointer types. To leverage the existing support for vector load/stores, we can bitcast the value to have s64 element types instead. We do this as a custom legalization.
This patch also adds support for general loads of <2 x s64>, and relaxes some type conditions on selecting G_BITCAST.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D60534
Files:
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
llvm/lib/Target/AArch64/AArch64LegalizerInfo.h
llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll
llvm/test/CodeGen/AArch64/GlobalISel/legalize-load-store-fewerElts.mir
llvm/test/CodeGen/AArch64/GlobalISel/legalize-load-store-vector-of-ptr.mir
llvm/test/CodeGen/AArch64/GlobalISel/select-load-store-vector-of-ptr.mir
llvm/test/CodeGen/AArch64/GlobalISel/select-load.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60534.194571.patch
Type: text/x-patch
Size: 16082 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190410/e5c08938/attachment.bin>
More information about the llvm-commits
mailing list