aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Target/TargetRegInfo.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetRegInfo.h b/include/llvm/Target/TargetRegInfo.h
index a4b8547..69dcadb 100644
--- a/include/llvm/Target/TargetRegInfo.h
+++ b/include/llvm/Target/TargetRegInfo.h
@@ -178,7 +178,7 @@ public:
// a regId in a register class to a common Id, or vice versa,
// we use the folloing two methods.
//
- // Thsi method converts from class reg. number to unified register number.
+ // This method converts from class reg. number to unified register number.
int getUnifiedRegNum(unsigned regClassID, int reg) const {
if (reg == getInvalidRegNum()) { return getInvalidRegNum(); }
assert(regClassID < getNumOfRegClasses() && "Invalid register class");
@@ -195,7 +195,8 @@ public:
int totalRegs = 0, rcid = 0, NC = getNumOfRegClasses();
while (rcid < NC &&
- uRegNum >= totalRegs + (int) MachineRegClassArr[rcid]->getNumOfAllRegs()) {
+ uRegNum>= totalRegs+(int)MachineRegClassArr[rcid]->getNumOfAllRegs())
+ {
totalRegs += MachineRegClassArr[rcid]->getNumOfAllRegs();
rcid++;
}