[PATCH] D64268: [MIPS GlobalISel] Register bank select for G_STORE. Select i64 store

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 5 14:22:53 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 stored value is defined by either:

  copy from physical register or
  instruction with only one mapping available for that def operand.

Store 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/D64268

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64268.208237.patch
Type: text/x-patch
Size: 22368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190705/11c3c723/attachment.bin>


More information about the llvm-commits mailing list