[all-commits] [llvm/llvm-project] 417dd6: [MIPS GlobalISel] Select MSA vector generic and bu...

petar-avramovic via All-commits all-commits at lists.llvm.org
Fri Oct 25 05:47:20 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 417dd6782505650081aa1f05057231e0375ee836
      https://github.com/llvm/llvm-project/commit/417dd6782505650081aa1f05057231e0375ee836
  Author: Petar Avramovic <Petar.Avramovic at rt-rk.com>
  Date:   2019-10-25 (Fri, 25 Oct 2019)

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

  Log Message:
  -----------
  [MIPS GlobalISel] Select MSA vector generic and builtin fsqrt

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.

Differential Revision: https://reviews.llvm.org/D69376




More information about the All-commits mailing list