[PATCH] D69376: [MIPS GlobalISel] Select MSA vector generic and builtin fsqrt

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 24 05:05:43 PDT 2019


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: atanasyan, petarj.
Herald added subscribers: llvm-commits, jrtc27, hiraditya, arichardson, rovka, sdardis.
Herald added a project: LLVM.

selectImpl is able to select G_FSQRT when we set bank for vector
operands to fprb. Add detailed tests. 
Note: G_FSQRT is generated from llvm-ir intrinsics llvm.sqrt.*,
and at the moment MIPS is not able to generate this intrinsic for
vector type (some targets generate vector llvm.sqrt.* from calls
to a builtin function).
__builtin_msa_fsqrt_<format> will be transformed into G_FSQRT
in legalizeIntrinsic and selected in the same way.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69376

Files:
  llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
  llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp
  llvm/test/CodeGen/Mips/GlobalISel/instruction-select/fsqrt_vec.mir
  llvm/test/CodeGen/Mips/GlobalISel/legalizer/fsqrt_vec.mir
  llvm/test/CodeGen/Mips/GlobalISel/legalizer/fsqrt_vec_builtin.mir
  llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/fsqrt_vec.ll
  llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/fsqrt_vec_builtin.ll
  llvm/test/CodeGen/Mips/GlobalISel/regbankselect/fsqrt_vec.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69376.226228.patch
Type: text/x-patch
Size: 14866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191024/e9c7c8d4/attachment.bin>


More information about the llvm-commits mailing list