diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-07 19:14:58 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-07 19:14:58 +0000 |
commit | fd87839a4888840ab5718fd116ab169ac04126af (patch) | |
tree | 753573b52cf749d258ce5ebbaee7ffea4e60c133 /lib/CodeGen/MachineInstr.cpp | |
parent | 42726835e38dd1b41c587187ddd04f5c9276ff08 (diff) |
Add TRI::getCommonSuperRegClass().
This function is a generalization of getMatchingSuperRegClass() to the
symmetric case where both sides are using a sub-register index. It will
find a super-register class and sub-register indexes that make this
diagram commute:
PreA
SuperRC ----------> RCA
| |
| |
PreB | | SubA
| |
| |
V V
RCB ----------> SubRC
SubB
This can be used to coalesce copies like:
%vreg1:sub16 = COPY %vreg2:sub16; GR64:%vreg1, GR32: %vreg2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions