[PATCH] D64269: [MIPS GlobalISel] Register bank select for G_LOAD. Select i64 load

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 5 14:23:31 PDT 2019


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

Select gprb or fprb when loaded value is used by either:

  copy to physical register or
  instruction with only one mapping available for that use operand.

Load of integer s64 is handled with narrowScalar when mapping is applied,
produced artifacts are combined away. Manually set gprb to all register
operands of instructions created during narrowScalar.


Repository:
  rL LLVM

https://reviews.llvm.org/D64269

Files:
  lib/Target/Mips/MipsLegalizerInfo.cpp
  lib/Target/Mips/MipsRegisterBankInfo.cpp
  lib/Target/Mips/MipsRegisterBankInfo.h
  test/CodeGen/Mips/GlobalISel/legalizer/load.mir
  test/CodeGen/Mips/GlobalISel/llvm-ir/load.ll
  test/CodeGen/Mips/GlobalISel/regbankselect/load.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64269.208238.patch
Type: text/x-patch
Size: 15879 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190705/42880f8e/attachment.bin>


More information about the llvm-commits mailing list