This is an archive of the discontinued LLVM Phabricator instance.

[MIPS GlobalISel] Register bank select for G_PHI. Select i64 phi
ClosedPublic

Authored by Petar.Avramovic on Jul 8 2019, 8:51 AM.

Details

Summary

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.

Diff Detail

Event Timeline

Petar.Avramovic created this revision.Jul 8 2019, 8:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2019, 8:52 AM
This revision is now accepted and ready to land.Jul 9 2019, 6:50 AM
This revision was automatically updated to reflect the committed changes.