[PATCH] D43444: [AArch64][GlobalISel] When copying from a gpr32 to an fpr16 reg, convert to fpr32 first

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 18 09:36:22 PST 2018


aemerson created this revision.
aemerson added reviewers: qcolombet, ab, rovka.
Herald added subscribers: kristof.beyls, javed.absar, rengolin.

This is a follow on commit to https://reviews.llvm.org/D43310 where we fix the other direction of copy.

For this case, after converting the source from gpr32 -> fpr32, we use a subregister copy, which is essentially what EXTRACT_SUBREG does in SDAG land.

The codegen isn't great at -O0, but I'm not sure what else we can do.


Repository:
  rL LLVM

https://reviews.llvm.org/D43444

Files:
  lib/Target/AArch64/AArch64InstructionSelector.cpp
  test/CodeGen/AArch64/GlobalISel/fp16-copy-gpr.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43444.134839.patch
Type: text/x-patch
Size: 5813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180218/db2f657c/attachment.bin>


More information about the llvm-commits mailing list