diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-27 12:47:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-27 12:47:48 +0000 |
commit | 2c3683a9012729bbaa3074850e82ccfd572ad5c0 (patch) | |
tree | bb2c0c318b1cf8c1393e33b6d6a56afa52fc0283 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 3e5d60fcea9f3178cc4bc9940e998b294c159b49 (diff) | |
download | bcm5719-llvm-2c3683a9012729bbaa3074850e82ccfd572ad5c0.tar.gz bcm5719-llvm-2c3683a9012729bbaa3074850e82ccfd572ad5c0.zip |
typo fix
llvm-svn: 29910
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 0672fc6fed0..7e3bec9381b 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/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); } |