diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-03-23 18:08:44 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-03-23 18:08:44 +0000 |
| commit | b5b9110b5178e179dd91c6c8d80a12ab24e69acd (patch) | |
| tree | 3e55cecb211be90e3dec10405c6fce2162198163 /llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp | |
| parent | 65a87ccdbf0c5ffc387e711946ddcb417efb48b8 (diff) | |
| download | bcm5719-llvm-b5b9110b5178e179dd91c6c8d80a12ab24e69acd.tar.gz bcm5719-llvm-b5b9110b5178e179dd91c6c8d80a12ab24e69acd.zip | |
Make all unnamed RegisterClass TreePatternNodes typed MVT::i32.
A register class can appear as a leaf TreePatternNode with and without a
name:
(COPY_TO_REGCLASS GPR:$src, F8RC)
In a named leaf node like GPR:$src, the register class provides type
information for the named variable represented by the node. The TypeSet
for such a node is the set of value types that the register class can
represent.
In an unnamed leaf node like F8RC above, the register class represents
itself as a kind of immediate. Such a node has the type MVT::i32,
we'll never create a virtual register representing it.
This change makes it possible to remove the special handling of
COPY_TO_REGCLASS in CodeGenDAGPatterns.cpp.
llvm-svn: 177825
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp')
0 files changed, 0 insertions, 0 deletions

