aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-27 12:47:48 +0000
committerChris Lattner <sabre@nondot.org>2006-08-27 12:47:48 +0000
commitc9d94d12900bd0d2bd482ef31f8f1deb3ffafa23 (patch)
treed55ebfb7fc08ae516c47e38d4fc35d33bebaa56b
parent7422a761008ef63152417c5e69ddc31252fb6b10 (diff)
typo fix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29910 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 0672fc6fed..7e3bec9381 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -202,12 +202,13 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
for (iterator I = begin(), E = end(); I != E; ++I) {
LiveInterval &li = I->second;
- if (MRegisterInfo::isVirtualRegister(li.reg))
- // If the live interval legnth is essentially zero, i.e. in every live
+ if (MRegisterInfo::isVirtualRegister(li.reg)) {
+ // If the live interval length is essentially zero, i.e. in every live
// range the use follows def immediately, it doesn't make sense to spill
// it and hope it will be easier to allocate for this li.
if (isZeroLengthInterval(&li))
li.weight = float(HUGE_VAL);
+ }
}
DEBUG(dump());
@@ -931,6 +932,6 @@ bool LiveIntervals::differingRegisterClasses(unsigned RegA,
LiveInterval LiveIntervals::createInterval(unsigned reg) {
float Weight = MRegisterInfo::isPhysicalRegister(reg) ?
- (float)HUGE_VAL :0.0F;
+ (float)HUGE_VAL : 0.0F;
return LiveInterval(reg, Weight);
}