@@ -119,16 +119,16 @@ bool RegBankSelect::assignmentMatch(
119
119
return false ;
120
120
121
121
const RegisterBank *CurRegBank = RBI->getRegBank (Reg, *MRI, *TRI);
122
- const RegisterBank *DesiredRegBrank = ValMapping.BreakDown [0 ].RegBank ;
122
+ const RegisterBank *DesiredRegBank = ValMapping.BreakDown [0 ].RegBank ;
123
123
// Reg is free of assignment, a simple assignment will make the
124
124
// register bank to match.
125
125
OnlyAssign = CurRegBank == nullptr ;
126
126
LLVM_DEBUG (dbgs () << " Does assignment already match: " ;
127
127
if (CurRegBank) dbgs () << *CurRegBank; else dbgs () << " none" ;
128
128
dbgs () << " against " ;
129
- assert (DesiredRegBrank && " The mapping must be valid" );
130
- dbgs () << *DesiredRegBrank << ' \n ' ;);
131
- return CurRegBank == DesiredRegBrank ;
129
+ assert (DesiredRegBank && " The mapping must be valid" );
130
+ dbgs () << *DesiredRegBank << ' \n ' ;);
131
+ return CurRegBank == DesiredRegBank ;
132
132
}
133
133
134
134
bool RegBankSelect::repairReg (
@@ -260,11 +260,11 @@ uint64_t RegBankSelect::getRepairCost(
260
260
return RBI->getBreakDownCost (ValMapping, CurRegBank);
261
261
262
262
if (IsSameNumOfValues) {
263
- const RegisterBank *DesiredRegBrank = ValMapping.BreakDown [0 ].RegBank ;
263
+ const RegisterBank *DesiredRegBank = ValMapping.BreakDown [0 ].RegBank ;
264
264
// If we repair a definition, swap the source and destination for
265
265
// the repairing.
266
266
if (MO.isDef ())
267
- std::swap (CurRegBank, DesiredRegBrank );
267
+ std::swap (CurRegBank, DesiredRegBank );
268
268
// TODO: It may be possible to actually avoid the copy.
269
269
// If we repair something where the source is defined by a copy
270
270
// and the source of that copy is on the right bank, we can reuse
@@ -276,7 +276,7 @@ uint64_t RegBankSelect::getRepairCost(
276
276
// into a new virtual register.
277
277
// We would also need to propagate this information in the
278
278
// repairing placement.
279
- unsigned Cost = RBI->copyCost (*DesiredRegBrank , *CurRegBank,
279
+ unsigned Cost = RBI->copyCost (*DesiredRegBank , *CurRegBank,
280
280
RBI->getSizeInBits (MO.getReg (), *MRI, *TRI));
281
281
// TODO: use a dedicated constant for ImpossibleCost.
282
282
if (Cost != std::numeric_limits<unsigned >::max ())
0 commit comments