[PATCH] D64351: [MIPS GlobalISel] Register bank select for G_PHI. Select i64 phi

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 08:53:27 PDT 2019


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

Select gprb or fprb when def/use register operand of G_PHI is 
used/defined by either:
 copy to/from physical register or
 instruction with only one mapping available for that use/def operand.

Integer s64 phi 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/D64351

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64351.208436.patch
Type: text/x-patch
Size: 26359 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190708/8ebeff89/attachment.bin>


More information about the llvm-commits mailing list