mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-13 23:25:06 +00:00
Fix spelling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9027 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -64,7 +64,7 @@ void ReplaceInstWithInst(Instruction *From, Instruction *To) {
|
||||
// degree of the current basic block, the actual terminator instruction itself
|
||||
// may have to be changed. In the case where the last successor of the block is
|
||||
// deleted, a return instruction is inserted in its place which can cause a
|
||||
// suprising change in program behavior if it is not expected.
|
||||
// surprising change in program behavior if it is not expected.
|
||||
//
|
||||
void RemoveSuccessor(TerminatorInst *TI, unsigned SuccNum) {
|
||||
assert(SuccNum < TI->getNumSuccessors() &&
|
||||
|
@@ -106,7 +106,7 @@ void SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, Pass *P) {
|
||||
DS->addBasicBlock(NewBB, DomSet);
|
||||
}
|
||||
|
||||
// Should we update ImmdediateDominator information?
|
||||
// Should we update ImmediateDominator information?
|
||||
if (ImmediateDominators *ID = P->getAnalysisToUpdate<ImmediateDominators>()) {
|
||||
// TIBB is the new immediate dominator for NewBB. NewBB doesn't dominate
|
||||
// anything.
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
/// CloneModule - Return an exact copy of the specified module. This is not as
|
||||
/// easy as it might seem because we have to worry about making copies of global
|
||||
/// variables and functions, and making their (intializers and references,
|
||||
/// variables and functions, and making their (initializers and references,
|
||||
/// respectively) refer to the right globals.
|
||||
///
|
||||
Module *CloneModule(const Module *M) {
|
||||
|
@@ -151,9 +151,9 @@ static bool LinkTypes(Module *Dest, const Module *Src, std::string *Err) {
|
||||
SymbolTable::const_iterator PI = SrcST->find(Type::TypeTy);
|
||||
if (PI == SrcST->end()) return false; // No named types, do nothing.
|
||||
|
||||
// Some types cannot be resolved immediately becuse they depend on other types
|
||||
// being resolved to each other first. This contains a list of types we are
|
||||
// waiting to recheck.
|
||||
// Some types cannot be resolved immediately because they depend on other
|
||||
// types being resolved to each other first. This contains a list of types we
|
||||
// are waiting to recheck.
|
||||
std::vector<std::string> DelayedTypesToResolve;
|
||||
|
||||
const SymbolTable::VarMap &VM = PI->second;
|
||||
|
@@ -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.
|
||||
|
@@ -19,7 +19,7 @@
|
||||
// have extra slots added to them to hold the merge edges from BB's
|
||||
// predecessors, and BB itself might have had PHI nodes in it. This function
|
||||
// returns true (failure) if the Succ BB already has a predecessor that is a
|
||||
// predecessor of BB and incoming PHI arguments would not be discernable.
|
||||
// predecessor of BB and incoming PHI arguments would not be discernible.
|
||||
//
|
||||
// Assumption: Succ is the single successor for BB.
|
||||
//
|
||||
@@ -269,10 +269,10 @@ bool SimplifyCFG(BasicBlock *BB) {
|
||||
// Delete the unconditional branch from the predecessor...
|
||||
OnlyPred->getInstList().pop_back();
|
||||
|
||||
// Move all definitions in the succecessor to the predecessor...
|
||||
// Move all definitions in the successor to the predecessor...
|
||||
OnlyPred->getInstList().splice(OnlyPred->end(), BB->getInstList());
|
||||
|
||||
// Make all PHI nodes that refered to BB now refer to Pred as their
|
||||
// Make all PHI nodes that referred to BB now refer to Pred as their
|
||||
// source...
|
||||
BB->replaceAllUsesWith(OnlyPred);
|
||||
|
||||
|
Reference in New Issue
Block a user