[AArch64][GlobalISel] Add pre-isel lowering to convert p0 G_DUPs to use s64.
authorAmara Emerson <amara@apple.com>
Tue, 24 Nov 2020 06:57:37 +0000 (22:57 -0800)
committerAmara Emerson <amara@apple.com>
Tue, 24 Nov 2020 06:59:35 +0000 (22:59 -0800)
commitca7fdf7ce098ace9ba24a94e985b24cd6801240d
tree28bce732d4ab18a42aaa0fe8c1335f037f2ad06f
parent0fb76b9035c8af48f63d965faadfb4b0e58b0a4f
[AArch64][GlobalISel] Add pre-isel lowering to convert p0 G_DUPs to use s64.

This uses the same reasoning as other similar conversions just before selection,
without it we miss out on selection because the importer considers s64 and p0
distinct types.
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/select-dup.mir