| commit | f7957a9819d4451c65889bce2fe589668d04efff | [log] [tgz] |
|---|---|---|
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | Wed Oct 05 20:26:40 2011 +0000 |
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | Wed Oct 05 20:26:40 2011 +0000 |
| tree | 41396fbf89a9196cc8e8c815c4843e7801dfc55d | |
| parent | ee9b576a2abee21f3aac80a7d88e2b6dadeffd4e [diff] |
Simplify EXTRACT_SUBREG emission. EXTRACT_SUBREG is emitted as %dst = COPY %src:sub, so there is no need to constrain the %dst register class. RegisterCoalescer will apply the necessary constraints if it decides to eliminate the COPY. The %src register class does need to be constrained to something with the right sub-registers, though. This is currently done manually with COPY_TO_REGCLASS nodes. They can possibly be removed after this patch. llvm-svn: 141207