Skip to content

Commit bb29c74

Browse files
jayfoadyuxuanchen1997
authored andcommitted
[LLVM] Fix typo "depedent"
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251224
1 parent 94a8a19 commit bb29c74

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

llvm/lib/CodeGen/TwoAddressInstructionPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ bool TwoAddressInstructionImpl::rescheduleKillAboveMI(
11601160
}
11611161
}
11621162

1163-
// Check if the reschedule will not break depedencies.
1163+
// Check if the reschedule will not break dependencies.
11641164
unsigned NumVisited = 0;
11651165
for (MachineInstr &OtherMI :
11661166
make_range(mi, MachineBasicBlock::iterator(KillMI))) {

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13292,7 +13292,7 @@ SDValue AArch64TargetLowering::LowerDUPQLane(SDValue Op,
1329213292
if (VT.getSizeInBits().getKnownMinValue() != AArch64::SVEBitsPerBlock)
1329313293
return SDValue();
1329413294

13295-
// The DUPQ operation is indepedent of element type so normalise to i64s.
13295+
// The DUPQ operation is independent of element type so normalise to i64s.
1329613296
SDValue Idx128 = Op.getOperand(2);
1329713297

1329813298
// DUPQ can be used when idx is in range.

llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class WebAssemblyFixBrTableDefaults final : public MachineFunctionPass {
4242

4343
char WebAssemblyFixBrTableDefaults::ID = 0;
4444

45-
// Target indepedent selection dag assumes that it is ok to use PointerTy
45+
// Target independent selection dag assumes that it is ok to use PointerTy
4646
// as the index for a "switch", whereas Wasm so far only has a 32-bit br_table.
4747
// See e.g. SelectionDAGBuilder::visitJumpTableHeader
4848
// We have a 64-bit br_table in the tablegen defs as a result, which does get

llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class LoadEliminationForLoop {
192192
// forward and backward dependences qualify. Disqualify loads that have
193193
// other unknown dependences.
194194

195-
SmallPtrSet<Instruction *, 4> LoadsWithUnknownDepedence;
195+
SmallPtrSet<Instruction *, 4> LoadsWithUnknownDependence;
196196

197197
for (const auto &Dep : *Deps) {
198198
Instruction *Source = Dep.getSource(DepChecker);
@@ -201,9 +201,9 @@ class LoadEliminationForLoop {
201201
if (Dep.Type == MemoryDepChecker::Dependence::Unknown ||
202202
Dep.Type == MemoryDepChecker::Dependence::IndirectUnsafe) {
203203
if (isa<LoadInst>(Source))
204-
LoadsWithUnknownDepedence.insert(Source);
204+
LoadsWithUnknownDependence.insert(Source);
205205
if (isa<LoadInst>(Destination))
206-
LoadsWithUnknownDepedence.insert(Destination);
206+
LoadsWithUnknownDependence.insert(Destination);
207207
continue;
208208
}
209209

@@ -231,9 +231,9 @@ class LoadEliminationForLoop {
231231
Candidates.emplace_front(Load, Store);
232232
}
233233

234-
if (!LoadsWithUnknownDepedence.empty())
234+
if (!LoadsWithUnknownDependence.empty())
235235
Candidates.remove_if([&](const StoreToLoadForwardingCandidate &C) {
236-
return LoadsWithUnknownDepedence.count(C.Load);
236+
return LoadsWithUnknownDependence.count(C.Load);
237237
});
238238

239239
return Candidates;

llvm/test/Analysis/LoopAccessAnalysis/forward-loop-independent.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 4
22
; RUN: opt -passes='print<access-info>' -disable-output < %s 2>&1 | FileCheck %s
33

4-
; Check that loop-indepedent forward dependences are discovered properly.
4+
; Check that loop-independent forward dependences are discovered properly.
55
;
66
; FIXME: This does not actually always work which is pretty confusing. Right
7-
; now there is hack in LAA that tries to figure out loop-indepedent forward
7+
; now there is hack in LAA that tries to figure out loop-independent forward
88
; dependeces *outside* of the MemoryDepChecker logic (i.e. proper dependence
99
; analysis).
1010
;

0 commit comments

Comments
 (0)