[PATCH] D60904: [GlobalISel][AArch64] Legalize vector G_FMA + fix G_FMA's register bank

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 19 09:56:36 PDT 2019


paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls, javed.absar, rovka.
Herald added a project: LLVM.

This is legalized the same way as G_FCEIL, etc. Just add it to the existing legalizer rule.

Also, add the missing switch statement in AArch64RegisterBankInfo.cpp to make sure G_FMA is always on an FPR.

Update arm64-vfloatintrinsics.ll, add a legalizer test for G_FMA, and add a regbankselect test for G_FMA.


https://reviews.llvm.org/D60904

Files:
  llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
  llvm/lib/Target/AArch64/AArch64RegisterBankInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-fma.mir
  llvm/test/CodeGen/AArch64/GlobalISel/regbankselect-fma.mir
  llvm/test/CodeGen/AArch64/arm64-vfloatintrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60904.195883.patch
Type: text/x-patch
Size: 21920 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190419/75430503/attachment.bin>


More information about the llvm-commits mailing list