mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Cleanup: Simplify loop end logic in computeRegisterProperties().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168507 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e84b47e41c
commit
d5f03186e5
@ -758,14 +758,13 @@ void TargetLowering::computeRegisterProperties() {
|
||||
|
||||
// Every integer value type larger than this largest register takes twice as
|
||||
// many registers to represent as the previous ValueType.
|
||||
for (unsigned ExpandedReg = LargestIntReg + 1; ; ++ExpandedReg) {
|
||||
EVT ExpandedVT = (MVT::SimpleValueType)ExpandedReg;
|
||||
if (!ExpandedVT.isInteger())
|
||||
break;
|
||||
for (unsigned ExpandedReg = LargestIntReg + 1;
|
||||
ExpandedReg <= MVT::LAST_INTEGER_VALUETYPE; ++ExpandedReg) {
|
||||
NumRegistersForVT[ExpandedReg] = 2*NumRegistersForVT[ExpandedReg-1];
|
||||
RegisterTypeForVT[ExpandedReg] = (MVT::SimpleValueType)LargestIntReg;
|
||||
TransformToType[ExpandedReg] = (MVT::SimpleValueType)(ExpandedReg - 1);
|
||||
ValueTypeActions.setTypeAction(ExpandedVT, TypeExpandInteger);
|
||||
ValueTypeActions.setTypeAction((MVT::SimpleValueType)ExpandedReg,
|
||||
TypeExpandInteger);
|
||||
}
|
||||
|
||||
// Inspect all of the ValueType's smaller than the largest integer
|
||||
|
Loading…
Reference in New Issue
Block a user