diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-10-10 17:57:28 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-10-10 17:57:28 +0000 |
commit | 8b2bd4ed47e819e042a49d21abbd8f6bcd143f79 (patch) | |
tree | ba3a478e91b08ac7ff56e4f216b2af0fb7bac92a /llvm/lib/Transforms/Scalar | |
parent | d67697411af42b41073552b7ff73775ec6f9e6f2 (diff) | |
download | bcm5719-llvm-8b2bd4ed47e819e042a49d21abbd8f6bcd143f79.tar.gz bcm5719-llvm-8b2bd4ed47e819e042a49d21abbd8f6bcd143f79.zip |
Fix spelling.
llvm-svn: 9027
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r-- | llvm/lib/Transforms/Scalar/ADCE.cpp | 10 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/GCSE.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/LICM.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopSimplify.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/PiNodeInsertion.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 2 |
8 files changed, 17 insertions, 17 deletions
diff --git a/llvm/lib/Transforms/Scalar/ADCE.cpp b/llvm/lib/Transforms/Scalar/ADCE.cpp index 8d716054060..3e11241f19f 100644 --- a/llvm/lib/Transforms/Scalar/ADCE.cpp +++ b/llvm/lib/Transforms/Scalar/ADCE.cpp @@ -259,7 +259,7 @@ bool ADCE::doADCE() { // Loop over all of the instructions in the function, telling dead // instructions to drop their references. This is so that the next sweep // over the program can safely delete dead instructions without other dead - // instructions still refering to them. + // instructions still referring to them. // dropReferencesOfDeadInstructionsInLiveBlock(I); @@ -328,9 +328,9 @@ bool ADCE::doADCE() { if (LastNode == 0) { // No postdominator! // Call RemoveSuccessor to transmogrify the terminator instruction // to not contain the outgoing branch, or to create a new - // terminator if the form fundementally changes (ie unconditional - // branch to return). Note that this will change a branch into an - // infinite loop into a return instruction! + // terminator if the form fundamentally changes (i.e., + // unconditional branch to return). Note that this will change a + // branch into an infinite loop into a return instruction! // RemoveSuccessor(TI, i); @@ -378,7 +378,7 @@ bool ADCE::doADCE() { // Now loop over all of the instructions in the basic block, telling // dead instructions to drop their references. This is so that the next // sweep over the program can safely delete dead instructions without - // other dead instructions still refering to them. + // other dead instructions still referring to them. // dropReferencesOfDeadInstructionsInLiveBlock(BB); } diff --git a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp index 6003c81278d..59b8b0f28c8 100644 --- a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp +++ b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp @@ -121,7 +121,7 @@ namespace { void setReplacement(Value *Repl) { Replacement = Repl; } // getRelation - return the relationship entry for the specified value. - // This can invalidate references to other Relation's, so use it carefully. + // This can invalidate references to other Relations, so use it carefully. // Relation &getRelation(Value *V) { // Binary search for V's entry... @@ -896,7 +896,7 @@ void CEE::PropagateRelation(Instruction::BinaryOps Opcode, Value *Op0, return; } - // If the information propogted is new, then we want process the uses of this + // If the information propagated is new, then we want process the uses of this // instruction to propagate the information down to them. // if (Op1R.incorporate(Opcode, VI)) diff --git a/llvm/lib/Transforms/Scalar/GCSE.cpp b/llvm/lib/Transforms/Scalar/GCSE.cpp index 6883818dbc0..9e1c44080ad 100644 --- a/llvm/lib/Transforms/Scalar/GCSE.cpp +++ b/llvm/lib/Transforms/Scalar/GCSE.cpp @@ -193,7 +193,7 @@ Instruction *GCSE::EliminateCSE(Instruction *I, Instruction *Other) { Instruction *Ret = 0; if (BB1 == BB2) { - // Eliminate the second occuring instruction. Add all uses of the second + // Eliminate the second occurring instruction. Add all uses of the second // instruction to the worklist. // // Scan the basic block looking for the "first" instruction @@ -242,7 +242,7 @@ Instruction *GCSE::EliminateCSE(Instruction *I, Instruction *Other) { // ... X+Y ... // } // - // In thiscase, the expression would be hoisted to outside the 'if' stmt, + // In this case, the expression would be hoisted to outside the 'if' stmt, // causing the expression to be evaluated, even for the if (d) path, which // could cause problems, if, for example, it caused a divide by zero. In // general the problem this case is trying to solve is better addressed with diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 33c8c700e60..51be904931e 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -50,7 +50,7 @@ static bool TransformLoop(LoopInfo *Loops, Loop *Loop) { BasicBlock::iterator AfterPHIIt = Header->begin(); for (; PHINode *PN = dyn_cast<PHINode>(AfterPHIIt); ++AfterPHIIt) IndVars.push_back(InductionVariable(PN, Loops)); - // AfterPHIIt now points to first nonphi instruction... + // AfterPHIIt now points to first non-phi instruction... // If there are no phi nodes in this basic block, there can't be indvars... if (IndVars.empty()) return Changed; diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index eb7a64d765e..a794761a4ef 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -77,7 +77,7 @@ namespace { /// HoistRegion - Walk the specified region of the CFG (defined by all /// blocks dominated by the specified block, and that are in the current /// loop) in depth first order w.r.t the DominatorTree. This allows us to - /// visit defintions before uses, allowing us to hoist a loop body in one + /// visit definitions before uses, allowing us to hoist a loop body in one /// pass without iteration. /// void HoistRegion(DominatorTree::Node *N); @@ -240,7 +240,7 @@ void LICM::visitLoop(Loop *L, AliasSetTracker &AST) { /// HoistRegion - Walk the specified region of the CFG (defined by all blocks /// dominated by the specified block, and that are in the current loop) in depth -/// first order w.r.t the DominatorTree. This allows us to visit defintions +/// first order w.r.t the DominatorTree. This allows us to visit definitions /// before uses, allowing us to hoist a loop body in one pass without iteration. /// void LICM::HoistRegion(DominatorTree::Node *N) { diff --git a/llvm/lib/Transforms/Scalar/LoopSimplify.cpp b/llvm/lib/Transforms/Scalar/LoopSimplify.cpp index 56b63f35cc3..3c77b01a86a 100644 --- a/llvm/lib/Transforms/Scalar/LoopSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/LoopSimplify.cpp @@ -13,7 +13,7 @@ // as store-sinking that are built into LICM. // // Note that the simplifycfg pass will clean up blocks which are split out but -// end up being unnecessary, so usage of this pass does not neccesarily +// end up being unnecessary, so usage of this pass does not necessarily // pessimize generated code. // //===----------------------------------------------------------------------===// @@ -203,7 +203,7 @@ void Preheaders::InsertPreheaderForLoop(Loop *L) { SplitBlockPredecessors(Header, ".preheader", OutsideBlocks); //===--------------------------------------------------------------------===// - // Update analysis results now that we have preformed the transformation + // Update analysis results now that we have performed the transformation // // We know that we have loop information to update... update it now. diff --git a/llvm/lib/Transforms/Scalar/PiNodeInsertion.cpp b/llvm/lib/Transforms/Scalar/PiNodeInsertion.cpp index 21eaf23bd71..d555df788a1 100644 --- a/llvm/lib/Transforms/Scalar/PiNodeInsertion.cpp +++ b/llvm/lib/Transforms/Scalar/PiNodeInsertion.cpp @@ -1,7 +1,7 @@ //===- PiNodeInsertion.cpp - Insert Pi nodes into a program ---------------===// // // PiNodeInsertion - This pass inserts single entry Phi nodes into basic blocks -// that are preceeded by a conditional branch, where the branch gives +// that are preceded by a conditional branch, where the branch gives // information about the operands of the condition. For example, this C code: // if (x == 0) { ... = x + 4; // becomes: @@ -15,7 +15,7 @@ // saying that X has a value of 0 in this scope. The power of this analysis // information is that "in the scope" translates to "for all uses of x2". // -// This special form of Phi node is refered to as a Pi node, following the +// This special form of Phi node is referred to as a Pi node, following the // terminology defined in the "Array Bounds Checks on Demand" paper. // // As a really trivial example of what the Pi nodes are good for, this pass diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 3effa66eefe..9134bf81b1d 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -499,7 +499,7 @@ void SCCP::visitPHINode(PHINode &PN) { // this is the case, the PHI remains undefined. // if (OperandVal) - markConstant(PNIV, &PN, OperandVal); // Aquire operand value + markConstant(PNIV, &PN, OperandVal); // Acquire operand value } void SCCP::visitTerminatorInst(TerminatorInst &TI) { |