From 17a82eaeb6339b184acb2f8bf0f314d69ad2e1d3 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 3 Oct 2008 17:11:58 +0000 Subject: Fix typos pointed out by Duncan. Also untabify these files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57018 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/RegAllocPBQP.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/CodeGen/RegAllocPBQP.cpp') diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index 7783766..107d277 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -120,7 +120,7 @@ namespace { PBQPVector* buildCostVector(const Container &allowed, PBQPNum spillCost) const; - //! \brief Builds a PBQP interfernce matrix. + //! \brief Builds a PBQP interference matrix. //! //! @return Either a pointer to a non-zero PBQP matrix representing the //! allocation option costs, or a null pointer for a zero matrix. @@ -142,7 +142,7 @@ namespace { const Container &allowed2, PBQPNum cBenefit) const; - //! \brief Helper functior for constructInitialPBQPProblem(). + //! \brief Helper function for constructInitialPBQPProblem(). //! //! This function iterates over the Function we are about to allocate for //! and computes spill costs. @@ -281,8 +281,8 @@ void PBQPRegAlloc::calcSpillCosts() { assert ((mo.isUse() || mo.isDef()) && "Not a use, not a def, what is it?"); - //... Just the virtual registers. We treat loads and stores as equal. - li->getInterval(moReg).weight += powf(10.0f, loopDepth); + //... Just the virtual registers. We treat loads and stores as equal. + li->getInterval(moReg).weight += powf(10.0f, loopDepth); } } -- cgit v1.1