Skip to content

Commit 9b61641

Browse files
committed
GlobalISel: Fix naming variables "brank" instead of "bank"
1 parent a12ac70 commit 9b61641

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,16 @@ bool RegBankSelect::assignmentMatch(
119119
return false;
120120

121121
const RegisterBank *CurRegBank = RBI->getRegBank(Reg, *MRI, *TRI);
122-
const RegisterBank *DesiredRegBrank = ValMapping.BreakDown[0].RegBank;
122+
const RegisterBank *DesiredRegBank = ValMapping.BreakDown[0].RegBank;
123123
// Reg is free of assignment, a simple assignment will make the
124124
// register bank to match.
125125
OnlyAssign = CurRegBank == nullptr;
126126
LLVM_DEBUG(dbgs() << "Does assignment already match: ";
127127
if (CurRegBank) dbgs() << *CurRegBank; else dbgs() << "none";
128128
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;
132132
}
133133

134134
bool RegBankSelect::repairReg(
@@ -260,11 +260,11 @@ uint64_t RegBankSelect::getRepairCost(
260260
return RBI->getBreakDownCost(ValMapping, CurRegBank);
261261

262262
if (IsSameNumOfValues) {
263-
const RegisterBank *DesiredRegBrank = ValMapping.BreakDown[0].RegBank;
263+
const RegisterBank *DesiredRegBank = ValMapping.BreakDown[0].RegBank;
264264
// If we repair a definition, swap the source and destination for
265265
// the repairing.
266266
if (MO.isDef())
267-
std::swap(CurRegBank, DesiredRegBrank);
267+
std::swap(CurRegBank, DesiredRegBank);
268268
// TODO: It may be possible to actually avoid the copy.
269269
// If we repair something where the source is defined by a copy
270270
// and the source of that copy is on the right bank, we can reuse
@@ -276,7 +276,7 @@ uint64_t RegBankSelect::getRepairCost(
276276
// into a new virtual register.
277277
// We would also need to propagate this information in the
278278
// repairing placement.
279-
unsigned Cost = RBI->copyCost(*DesiredRegBrank, *CurRegBank,
279+
unsigned Cost = RBI->copyCost(*DesiredRegBank, *CurRegBank,
280280
RBI->getSizeInBits(MO.getReg(), *MRI, *TRI));
281281
// TODO: use a dedicated constant for ImpossibleCost.
282282
if (Cost != std::numeric_limits<unsigned>::max())

0 commit comments

Comments
 (0)