[llvm] 8ebe499 - [LLVM] Fix typo "depedent"
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 04:52:50 PDT 2024
Author: Jay Foad
Date: 2024-07-23T12:52:20+01:00
New Revision: 8ebe499e07760b0d18b5721b298efc9e4a241916
URL: https://github.com/llvm/llvm-project/commit/8ebe499e07760b0d18b5721b298efc9e4a241916
DIFF: https://github.com/llvm/llvm-project/commit/8ebe499e07760b0d18b5721b298efc9e4a241916.diff
LOG: [LLVM] Fix typo "depedent"
Added:
Modified:
llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp
llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
llvm/test/Analysis/LoopAccessAnalysis/forward-loop-independent.ll
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index 665d57841a97b..6f7905c8988dc 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -1160,7 +1160,7 @@ bool TwoAddressInstructionImpl::rescheduleKillAboveMI(
}
}
- // Check if the reschedule will not break depedencies.
+ // Check if the reschedule will not break dependencies.
unsigned NumVisited = 0;
for (MachineInstr &OtherMI :
make_range(mi, MachineBasicBlock::iterator(KillMI))) {
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 87e7750768d2d..4f8819644fa77 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -13292,7 +13292,7 @@ SDValue AArch64TargetLowering::LowerDUPQLane(SDValue Op,
if (VT.getSizeInBits().getKnownMinValue() != AArch64::SVEBitsPerBlock)
return SDValue();
- // The DUPQ operation is indepedent of element type so normalise to i64s.
+ // The DUPQ operation is independent of element type so normalise to i64s.
SDValue Idx128 = Op.getOperand(2);
// DUPQ can be used when idx is in range.
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp
index 4252fc1f55fc9..d8fb15666662c 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp
@@ -42,7 +42,7 @@ class WebAssemblyFixBrTableDefaults final : public MachineFunctionPass {
char WebAssemblyFixBrTableDefaults::ID = 0;
-// Target indepedent selection dag assumes that it is ok to use PointerTy
+// Target independent selection dag assumes that it is ok to use PointerTy
// as the index for a "switch", whereas Wasm so far only has a 32-bit br_table.
// See e.g. SelectionDAGBuilder::visitJumpTableHeader
// We have a 64-bit br_table in the tablegen defs as a result, which does get
diff --git a/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp b/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
index 489f12e689d31..db82f75bad5f3 100644
--- a/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
@@ -192,7 +192,7 @@ class LoadEliminationForLoop {
// forward and backward dependences qualify. Disqualify loads that have
// other unknown dependences.
- SmallPtrSet<Instruction *, 4> LoadsWithUnknownDepedence;
+ SmallPtrSet<Instruction *, 4> LoadsWithUnknownDependence;
for (const auto &Dep : *Deps) {
Instruction *Source = Dep.getSource(DepChecker);
@@ -201,9 +201,9 @@ class LoadEliminationForLoop {
if (Dep.Type == MemoryDepChecker::Dependence::Unknown ||
Dep.Type == MemoryDepChecker::Dependence::IndirectUnsafe) {
if (isa<LoadInst>(Source))
- LoadsWithUnknownDepedence.insert(Source);
+ LoadsWithUnknownDependence.insert(Source);
if (isa<LoadInst>(Destination))
- LoadsWithUnknownDepedence.insert(Destination);
+ LoadsWithUnknownDependence.insert(Destination);
continue;
}
@@ -231,9 +231,9 @@ class LoadEliminationForLoop {
Candidates.emplace_front(Load, Store);
}
- if (!LoadsWithUnknownDepedence.empty())
+ if (!LoadsWithUnknownDependence.empty())
Candidates.remove_if([&](const StoreToLoadForwardingCandidate &C) {
- return LoadsWithUnknownDepedence.count(C.Load);
+ return LoadsWithUnknownDependence.count(C.Load);
});
return Candidates;
diff --git a/llvm/test/Analysis/LoopAccessAnalysis/forward-loop-independent.ll b/llvm/test/Analysis/LoopAccessAnalysis/forward-loop-independent.ll
index f1ae1a897fff8..7fc9958dba552 100644
--- a/llvm/test/Analysis/LoopAccessAnalysis/forward-loop-independent.ll
+++ b/llvm/test/Analysis/LoopAccessAnalysis/forward-loop-independent.ll
@@ -1,10 +1,10 @@
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 4
; RUN: opt -passes='print<access-info>' -disable-output < %s 2>&1 | FileCheck %s
-; Check that loop-indepedent forward dependences are discovered properly.
+; Check that loop-independent forward dependences are discovered properly.
;
; FIXME: This does not actually always work which is pretty confusing. Right
-; now there is hack in LAA that tries to figure out loop-indepedent forward
+; now there is hack in LAA that tries to figure out loop-independent forward
; dependeces *outside* of the MemoryDepChecker logic (i.e. proper dependence
; analysis).
;
More information about the llvm-commits
mailing list