Skip to content

Commit 02a2bb2

Browse files
committed
[NFC] fix trivial typos in comments
llvm-svn: 353147
1 parent ccd4e5e commit 02a2bb2

8 files changed

+13
-13
lines changed

llvm/lib/Analysis/BasicAliasAnalysis.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ ModRefInfo BasicAAResult::getModRefInfo(const CallBase *Call,
884884
getBestAAResults().alias(MemoryLocation(*CI), MemoryLocation(Object));
885885
if (AR != MustAlias)
886886
IsMustAlias = false;
887-
// Operand doesnt alias 'Object', continue looking for other aliases
887+
// Operand doesn't alias 'Object', continue looking for other aliases
888888
if (AR == NoAlias)
889889
continue;
890890
// Operand aliases 'Object', but call doesn't modify it. Strengthen
@@ -1019,7 +1019,7 @@ ModRefInfo BasicAAResult::getModRefInfo(const CallBase *Call1,
10191019
// heap state at the point the guard is issued needs to be consistent in case
10201020
// the guard invokes the "deopt" continuation.
10211021

1022-
// NB! This function is *not* commutative, so we specical case two
1022+
// NB! This function is *not* commutative, so we special case two
10231023
// possibilities for guard intrinsics.
10241024

10251025
if (isIntrinsicCall(Call1, Intrinsic::experimental_guard))

llvm/lib/Analysis/GlobalsModRef.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ void GlobalsAAResult::AnalyzeCallGraph(CallGraph &CG, Module &M) {
596596
}
597597

598598
// All non-call instructions we use the primary predicates for whether
599-
// thay read or write memory.
599+
// they read or write memory.
600600
if (I.mayReadFromMemory())
601601
FI.addModRefInfo(ModRefInfo::Ref);
602602
if (I.mayWriteToMemory())
@@ -790,10 +790,10 @@ bool GlobalsAAResult::isNonEscapingGlobalNoAlias(const GlobalValue *GV,
790790
}
791791

792792
// FIXME: It would be good to handle other obvious no-alias cases here, but
793-
// it isn't clear how to do so reasonbly without building a small version
793+
// it isn't clear how to do so reasonably without building a small version
794794
// of BasicAA into this code. We could recurse into AAResultBase::alias
795795
// here but that seems likely to go poorly as we're inside the
796-
// implementation of such a query. Until then, just conservatievly retun
796+
// implementation of such a query. Until then, just conservatively return
797797
// false.
798798
return false;
799799
} while (!Inputs.empty());

llvm/lib/Analysis/IVDescriptors.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ bool InductionDescriptor::isInductionPHI(PHINode *Phi, const Loop *TheLoop,
10091009
// If we started from an UnknownSCEV, and managed to build an addRecurrence
10101010
// only after enabling Assume with PSCEV, this means we may have encountered
10111011
// cast instructions that required adding a runtime check in order to
1012-
// guarantee the correctness of the AddRecurence respresentation of the
1012+
// guarantee the correctness of the AddRecurrence respresentation of the
10131013
// induction.
10141014
if (PhiScev != AR && SymbolicPhi) {
10151015
SmallVector<Instruction *, 2> Casts;

llvm/lib/Analysis/InlineCost.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static cl::opt<int> LocallyHotCallSiteThreshold(
7676

7777
static cl::opt<int> ColdCallSiteRelFreq(
7878
"cold-callsite-rel-freq", cl::Hidden, cl::init(2), cl::ZeroOrMore,
79-
cl::desc("Maxmimum block frequency, expressed as a percentage of caller's "
79+
cl::desc("Maximum block frequency, expressed as a percentage of caller's "
8080
"entry frequency, for a callsite to be cold in the absence of "
8181
"profile information."));
8282

@@ -1675,7 +1675,7 @@ ConstantInt *CallAnalyzer::stripAndComputeInBoundsConstantOffsets(Value *&V) {
16751675
/// blocks to see if all their incoming edges are dead or not.
16761676
void CallAnalyzer::findDeadBlocks(BasicBlock *CurrBB, BasicBlock *NextBB) {
16771677
auto IsEdgeDead = [&](BasicBlock *Pred, BasicBlock *Succ) {
1678-
// A CFG edge is dead if the predecessor is dead or the predessor has a
1678+
// A CFG edge is dead if the predecessor is dead or the predecessor has a
16791679
// known successor which is not the one under exam.
16801680
return (DeadBlocks.count(Pred) ||
16811681
(KnownSuccessors[Pred] && KnownSuccessors[Pred] != Succ));

llvm/lib/Analysis/LazyValueInfo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ bool LazyValueInfoImpl::solveBlockValueImpl(ValueLatticeElement &Res,
624624
// and the like to prove non-nullness, but it's not clear that's worth it
625625
// compile time wise. The context-insensitive value walk done inside
626626
// isKnownNonZero gets most of the profitable cases at much less expense.
627-
// This does mean that we have a sensativity to where the defining
627+
// This does mean that we have a sensitivity to where the defining
628628
// instruction is placed, even if it could legally be hoisted much higher.
629629
// That is unfortunate.
630630
PointerType *PT = dyn_cast<PointerType>(BBI->getType());

llvm/lib/Analysis/LoopAccessAnalysis.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2251,7 +2251,7 @@ void LoopAccessInfo::collectStridedAccess(Value *MemAccess) {
22512251

22522252
// Match the types so we can compare the stride and the BETakenCount.
22532253
// The Stride can be positive/negative, so we sign extend Stride;
2254-
// The backdgeTakenCount is non-negative, so we zero extend BETakenCount.
2254+
// The backedgeTakenCount is non-negative, so we zero extend BETakenCount.
22552255
const DataLayout &DL = TheLoop->getHeader()->getModule()->getDataLayout();
22562256
uint64_t StrideTypeSize = DL.getTypeAllocSize(StrideExpr->getType());
22572257
uint64_t BETypeSize = DL.getTypeAllocSize(BETakenCount->getType());

llvm/lib/Analysis/MemorySSAUpdater.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ void MemorySSAUpdater::applyUpdates(ArrayRef<CFGUpdate> Updates,
598598

599599
if (!RevDeleteUpdates.empty()) {
600600
// Update for inserted edges: use newDT and snapshot CFG as if deletes had
601-
// not occured.
601+
// not occurred.
602602
// FIXME: This creates a new DT, so it's more expensive to do mix
603603
// delete/inserts vs just inserts. We can do an incremental update on the DT
604604
// to revert deletes, than re-delete the edges. Teaching DT to do this, is
@@ -696,7 +696,7 @@ void MemorySSAUpdater::applyInsertUpdates(ArrayRef<CFGUpdate> Updates,
696696

697697
// Map a BB to its predecessors: added + previously existing. To get a
698698
// deterministic order, store predecessors as SetVectors. The order in each
699-
// will be defined by teh order in Updates (fixed) and the order given by
699+
// will be defined by the order in Updates (fixed) and the order given by
700700
// children<> (also fixed). Since we further iterate over these ordered sets,
701701
// we lose the information of multiple edges possibly existing between two
702702
// blocks, so we'll keep and EdgeCount map for that.

llvm/lib/Analysis/VectorUtils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ void InterleavedAccessInfo::analyzeInterleaving(
991991
// that all the pointers in the group don't wrap.
992992
// So we check only group member 0 (which is always guaranteed to exist),
993993
// and group member Factor - 1; If the latter doesn't exist we rely on
994-
// peeling (if it is a non-reveresed accsess -- see Case 3).
994+
// peeling (if it is a non-reversed accsess -- see Case 3).
995995
Value *FirstMemberPtr = getLoadStorePointerOperand(Group->getMember(0));
996996
if (!getPtrStride(PSE, FirstMemberPtr, TheLoop, Strides, /*Assume=*/false,
997997
/*ShouldCheckWrap=*/true)) {

0 commit comments

Comments
 (0)