Skip to content

Commit 27c034a

Browse files
authored
[Hexagon] Fix typos discovered by codespell (NFC) (#126233)
Found using https://github.com/codespell-project/codespell ``` codespell Hexagon --write-changes \ --ignore-words-list=CarryIn,CreateOr,ORE,COPYs,ArchVer,predicable,UE,MIs,isNT,Vor,CountR,DUM,GEs,AddD,ToI, \ CopyIn,TheI,TotalIn,vor,MOne,contigious,Contigious ```
1 parent 9d134f2 commit 27c034a

27 files changed

+56
-55
lines changed

llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static cl::opt<bool> WarnSignedMismatch(
7474
cl::init(false));
7575
static cl::opt<bool> WarnNoncontigiousRegister(
7676
"mwarn-noncontigious-register",
77-
cl::desc("Warn for register names that arent contigious"), cl::init(true));
77+
cl::desc("Warn for register names that aren't contigious"), cl::init(true));
7878
static cl::opt<bool> ErrorNoncontigiousRegister(
7979
"merror-noncontigious-register",
8080
cl::desc("Error for register names that aren't contigious"),
@@ -1330,7 +1330,7 @@ unsigned HexagonAsmParser::validateTargetOperandClass(MCParsedAsmOperand &AsmOp,
13301330
return Match_InvalidOperand;
13311331
}
13321332

1333-
// FIXME: Calls to OutOfRange shoudl propagate failure up to parseStatement.
1333+
// FIXME: Calls to OutOfRange should propagate failure up to parseStatement.
13341334
bool HexagonAsmParser::OutOfRange(SMLoc IDLoc, long long Val, long long Max) {
13351335
std::string errStr;
13361336
raw_string_ostream ES(errStr);

llvm/lib/Target/Hexagon/HexagonBitSimplify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2854,7 +2854,7 @@ bool HexagonBitSimplify::runOnMachineFunction(MachineFunction &MF) {
28542854
// Recognize loops where the code at the end of the loop matches the code
28552855
// before the entry of the loop, and the matching code is such that is can
28562856
// be simplified. This pass relies on the bit simplification above and only
2857-
// prepares code in a way that can be handled by the bit simplifcation.
2857+
// prepares code in a way that can be handled by the bit simplification.
28582858
//
28592859
// This is the motivating testcase (and explanation):
28602860
//

llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ unsigned HCE::getDirectRegReplacement(unsigned ExtOpc) const {
10401040
// extender. It may be possible for MI to be tweaked to work for a register
10411041
// defined with a slightly different value. For example
10421042
// ... = L2_loadrub_io Rb, 1
1043-
// can be modifed to be
1043+
// can be modified to be
10441044
// ... = L2_loadrub_io Rb', 0
10451045
// if Rb' = Rb+1.
10461046
// The range for Rb would be [Min+1, Max+1], where [Min, Max] is a range

llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ namespace {
101101

102102
// Lattice cell, based on that was described in the W-Z paper on constant
103103
// propagation.
104-
// Latice cell will be allowed to hold multiple constant values. While
104+
// Lattice cell will be allowed to hold multiple constant values. While
105105
// multiple values would normally indicate "bottom", we can still derive
106106
// some useful information from them. For example, comparison X > 0
107107
// could be folded if all the values in the cell associated with X are
@@ -795,7 +795,7 @@ void MachineConstPropagator::visitUsesOf(unsigned Reg) {
795795
LLVM_DEBUG(dbgs() << "Visiting uses of " << printReg(Reg, &MCE.TRI)
796796
<< Cells.get(Reg) << '\n');
797797
for (MachineInstr &MI : MRI->use_nodbg_instructions(Reg)) {
798-
// Do not process non-executable instructions. They can become exceutable
798+
// Do not process non-executable instructions. They can become executable
799799
// later (via a flow-edge in the work queue). In such case, the instruc-
800800
// tion will be visited at that time.
801801
if (!InstrExec.count(&MI))

llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ bool HexagonCopyToCombine::isSafeToMoveTogether(MachineInstr &I1,
385385
return true;
386386
}
387387

388-
/// findPotentialNewifiableTFRs - Finds tranfers that feed stores that could be
388+
/// findPotentialNewifiableTFRs - Finds transfers that feed stores that could be
389389
/// newified. (A use of a 64 bit register define can not be newified)
390390
void
391391
HexagonCopyToCombine::findPotentialNewifiableTFRs(MachineBasicBlock &BB) {

llvm/lib/Target/Hexagon/HexagonExpandCondsets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ bool HexagonExpandCondsets::split(MachineInstr &MI,
720720
}
721721
}
722722

723-
// First, create the two invididual conditional transfers, and add each
723+
// First, create the two individual conditional transfers, and add each
724724
// of them to the live intervals information. Do that first and then remove
725725
// the old instruction from live intervals.
726726
MachineInstr *TfrT =

llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ CountValue *HexagonHardwareLoops::computeCount(MachineLoop *Loop,
825825
// a computation of it into the preheader.
826826

827827
// If the induction variable bump is not a power of 2, quit.
828-
// Othwerise we'd need a general integer division.
828+
// Otherwise we'd need a general integer division.
829829
if (!isPowerOf2_64(std::abs(IVBump)))
830830
return nullptr;
831831

@@ -1398,10 +1398,10 @@ bool HexagonHardwareLoops::phiMayWrapOrUnderflow(
13981398
/// counter if it is <= 1. We only need to perform this analysis if the
13991399
/// initial value is a register.
14001400
///
1401-
/// This function assumes the initial value may underfow unless proven
1401+
/// This function assumes the initial value may underflow unless proven
14021402
/// otherwise. If the type is signed, then we don't care because signed
14031403
/// underflow is undefined. We attempt to prove the initial value is not
1404-
/// zero by perfoming a crude analysis of the loop counter. This function
1404+
/// zero by performing a crude analysis of the loop counter. This function
14051405
/// checks if the initial value is used in any comparison prior to the loop
14061406
/// and, if so, assumes the comparison is a range check. This is inexact,
14071407
/// but will catch the simple cases.

llvm/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,7 +1984,7 @@ SmallVector<uint32_t, 8> HvxSelector::getPerfectCompletions(ShuffleMask SM,
19841984
// same as in P. This implies that P == Q.
19851985

19861986
// There can be a situation where there are more entries with the same
1987-
// bits set than there are set bits (e.g. value 9 occuring more than 2
1987+
// bits set than there are set bits (e.g. value 9 occurring more than 2
19881988
// times). In such cases it will be impossible to complete this to a
19891989
// perfect shuffle.
19901990
SmallVector<uint32_t, 8> Sorted(Worklist);
@@ -1995,7 +1995,7 @@ SmallVector<uint32_t, 8> HvxSelector::getPerfectCompletions(ShuffleMask SM,
19951995
while (++I != E && P == Sorted[I])
19961996
++Count;
19971997
if ((unsigned)llvm::popcount(P) < Count) {
1998-
// Reset all occurences of P, if there are more occurrences of P
1998+
// Reset all occurrences of P, if there are more occurrences of P
19991999
// than there are bits in P.
20002000
llvm::replace(Worklist, P, 0U);
20012001
}
@@ -2223,7 +2223,7 @@ OpRef HvxSelector::perfect(ShuffleMask SM, OpRef Va, ResultStack &Results) {
22232223
// V6_vdeal{b,h}
22242224
// V6_vshuff{b,h}
22252225

2226-
// V6_vshufoe{b,h} those are quivalent to vshuffvdd(..,{1,2})
2226+
// V6_vshufoe{b,h} those are equivalent to vshuffvdd(..,{1,2})
22272227
// V6_vshuffvdd (V6_vshuff)
22282228
// V6_dealvdd (V6_vdeal)
22292229

llvm/lib/Target/Hexagon/HexagonISelLowering.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ SDValue HexagonTargetLowering::LowerFormalArguments(
814814
// stack where the return value will be stored. For Hexagon, the location on
815815
// caller's stack is passed only when the struct size is smaller than (and
816816
// equal to) 8 bytes. If not, no address will be passed into callee and
817-
// callee return the result direclty through R0/R1.
817+
// callee return the result directly through R0/R1.
818818
auto NextSingleReg = [] (const TargetRegisterClass &RC, unsigned Reg) {
819819
switch (RC.getID()) {
820820
case Hexagon::IntRegsRegClassID:
@@ -979,7 +979,7 @@ HexagonTargetLowering::LowerVASTART(SDValue Op, SelectionDAG &DAG) const {
979979
// If first Vararg register is odd, add 4 bytes to start of
980980
// saved register area to point to the first register location.
981981
// This is because the saved register area has to be 8 byte aligned.
982-
// Incase of an odd start register, there will be 4 bytes of padding in
982+
// In case of an odd start register, there will be 4 bytes of padding in
983983
// the beginning of saved register area. If all registers area used up,
984984
// the following condition will handle it correctly.
985985
SDValue SavedRegAreaStartFrameIndex =
@@ -1321,7 +1321,7 @@ HexagonTargetLowering::GetDynamicTLSAddr(SelectionDAG &DAG, SDValue Chain,
13211321
}
13221322

13231323
//
1324-
// Lower using the intial executable model for TLS addresses
1324+
// Lower using the initial executable model for TLS addresses
13251325
//
13261326
SDValue
13271327
HexagonTargetLowering::LowerToTLSInitialExecModel(GlobalAddressSDNode *GA,
@@ -3320,7 +3320,7 @@ HexagonTargetLowering::LowerEH_RETURN(SDValue Op, SelectionDAG &DAG) const {
33203320
Chain = DAG.getStore(Chain, dl, Handler, StoreAddr, MachinePointerInfo());
33213321
Chain = DAG.getCopyToReg(Chain, dl, OffsetReg, Offset);
33223322

3323-
// Not needed we already use it as explict input to EH_RETURN.
3323+
// Not needed we already use it as explicit input to EH_RETURN.
33243324
// MF.getRegInfo().addLiveOut(OffsetReg);
33253325

33263326
return DAG.getNode(HexagonISD::EH_RETURN, dl, MVT::Other, Chain);

llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,7 @@ HexagonTargetLowering::VectorPair
24002400
HexagonTargetLowering::emitHvxAddWithOverflow(SDValue A, SDValue B,
24012401
const SDLoc &dl, bool Signed, SelectionDAG &DAG) const {
24022402
// Compute A+B, return {A+B, O}, where O = vector predicate indicating
2403-
// whether an overflow has occured.
2403+
// whether an overflow has occurred.
24042404
MVT ResTy = ty(A);
24052405
assert(ResTy == ty(B));
24062406
MVT PredTy = MVT::getVectorVT(MVT::i1, ResTy.getVectorNumElements());
@@ -2911,7 +2911,7 @@ HexagonTargetLowering::CreateTLWrapper(SDValue Op, SelectionDAG &DAG) const {
29112911
#ifndef NDEBUG
29122912
Op.dump(&DAG);
29132913
#endif
2914-
llvm_unreachable("Unepected operator");
2914+
llvm_unreachable("Unexpected operator");
29152915
}
29162916

29172917
const SDLoc &dl(Op);

llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,7 @@ bool HexagonInstrInfo::isDependent(const MachineInstr &ProdMI,
22402240
return false;
22412241
}
22422242

2243-
// Returns true if the instruction is alread a .cur.
2243+
// Returns true if the instruction is already a .cur.
22442244
bool HexagonInstrInfo::isDotCurInst(const MachineInstr &MI) const {
22452245
switch (MI.getOpcode()) {
22462246
case Hexagon::V6_vL32b_cur_pi:
@@ -3860,7 +3860,7 @@ int HexagonInstrInfo::getDotNewPredJumpOp(const MachineInstr &MI,
38603860
int HexagonInstrInfo::getDotNewPredOp(const MachineInstr &MI,
38613861
const MachineBranchProbabilityInfo *MBPI) const {
38623862
switch (MI.getOpcode()) {
3863-
// Condtional Jumps
3863+
// Conditional Jumps
38643864
case Hexagon::J2_jumpt:
38653865
case Hexagon::J2_jumpf:
38663866
return getDotNewPredJumpOp(MI, MBPI);
@@ -4325,7 +4325,7 @@ unsigned HexagonInstrInfo::getInstrTimingClassLatency(
43254325
/// operand latency. But it may not be possible for instructions with variable
43264326
/// number of defs / uses.
43274327
///
4328-
/// This is a raw interface to the itinerary that may be directly overriden by
4328+
/// This is a raw interface to the itinerary that may be directly overridden by
43294329
/// a target. Use computeOperandLatency to get the best estimate of latency.
43304330
std::optional<unsigned> HexagonInstrInfo::getOperandLatency(
43314331
const InstrItineraryData *ItinData, const MachineInstr &DefMI,

llvm/lib/Target/Hexagon/HexagonInstrInfo.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class HexagonInstrInfo : public HexagonGenInstrInfo {
145145

146146
/// Second variant of isProfitableToIfCvt. This one
147147
/// checks for the case where two basic blocks from true and false path
148-
/// of a if-then-else (diamond) are predicated on mutally exclusive
148+
/// of a if-then-else (diamond) are predicated on mutually exclusive
149149
/// predicates, where the probability of the true path being taken is given
150150
/// by Probability, and Confidence is a measure of our confidence that it
151151
/// will be properly predicted.
@@ -307,8 +307,9 @@ class HexagonInstrInfo : public HexagonGenInstrInfo {
307307
/// operand latency. But it may not be possible for instructions with variable
308308
/// number of defs / uses.
309309
///
310-
/// This is a raw interface to the itinerary that may be directly overriden by
311-
/// a target. Use computeOperandLatency to get the best estimate of latency.
310+
/// This is a raw interface to the itinerary that may be directly overridden
311+
/// by a target. Use computeOperandLatency to get the best estimate of
312+
/// latency.
312313
std::optional<unsigned> getOperandLatency(const InstrItineraryData *ItinData,
313314
const MachineInstr &DefMI,
314315
unsigned DefIdx,

llvm/lib/Target/Hexagon/HexagonLoopAlign.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static cl::opt<uint32_t> TinyLoopBndlAlignLimit(
4949

5050
static cl::opt<uint32_t>
5151
LoopEdgeThreshold("hexagon-loop-edge-threshold", cl::Hidden, cl::init(7500),
52-
cl::desc("Set hexagon loop align edge theshold"));
52+
cl::desc("Set hexagon loop align edge threshold"));
5353

5454
namespace llvm {
5555
FunctionPass *createHexagonLoopAlign();

llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
// Having said that, we should re-attempt to pull this earlier at some point
1414
// in future.
1515

16-
// The basic approach looks for sequence of predicated jump, compare instruciton
17-
// that genereates the predicate and, the feeder to the predicate. Once it finds
16+
// The basic approach looks for sequence of predicated jump, compare instruction
17+
// that generates the predicate and, the feeder to the predicate. Once it finds
1818
// all, it collapses compare and jump instruction into a new value jump
19-
// intstructions.
19+
// instructions.
2020
//
2121
//===----------------------------------------------------------------------===//
2222

llvm/lib/Target/Hexagon/HexagonOptAddrMode.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,18 @@ bool HexagonOptAddrMode::hasRepForm(MachineInstr &MI, unsigned TfrDefR) {
152152
}
153153

154154
if (HII->getAddrMode(MI) == HexagonII::BaseRegOffset)
155-
// Tranform to Absolute plus register offset.
155+
// Transform to Absolute plus register offset.
156156
return (HII->changeAddrMode_rr_ur(MI) >= 0);
157157
else if (HII->getAddrMode(MI) == HexagonII::BaseImmOffset)
158-
// Tranform to absolute addressing mode.
158+
// Transform to absolute addressing mode.
159159
return (HII->changeAddrMode_io_abs(MI) >= 0);
160160

161161
return false;
162162
}
163163

164164
// Check if addasl instruction can be removed. This is possible only
165165
// if it's feeding to only load/store instructions with base + register
166-
// offset as these instruction can be tranformed to use 'absolute plus
166+
// offset as these instruction can be transformed to use 'absolute plus
167167
// shifted register offset'.
168168
// ex:
169169
// Rs = ##foo
@@ -551,7 +551,7 @@ bool HexagonOptAddrMode::processAddBases(NodeAddr<StmtNode *> AddSN,
551551
return Changed;
552552
ProcessedAddiInsts.insert(AddMI);
553553

554-
// Get the base register that would be shared by other Addi Intructions
554+
// Get the base register that would be shared by other Addi Instructions
555555
Register BaseReg = AddMI->getOperand(1).getReg();
556556

557557
// Store a list of all Addi instructions that share the above common base
@@ -638,7 +638,7 @@ bool HexagonOptAddrMode::processAddBases(NodeAddr<StmtNode *> AddSN,
638638

639639
NewOffset = CurrentMIImmOp.getImm() - FirstReachedMIImmOp.getImm();
640640

641-
// This is the first occuring Addi, so skip modifying this
641+
// This is the first occurring Addi, so skip modifying this
642642
if (CurrentMI == FirstReachedMI) {
643643
continue;
644644
}
@@ -1084,7 +1084,7 @@ bool HexagonOptAddrMode::processBlock(NodeAddr<BlockNode *> BA) {
10841084

10851085
// Analyze all uses of 'add'. If the output of 'add' is used as an address
10861086
// in the base+immediate addressing mode load/store instructions, see if
1087-
// they can be updated to use the immediate value as an offet. Thus,
1087+
// they can be updated to use the immediate value as an offset. Thus,
10881088
// providing us the opportunity to eliminate 'add'.
10891089
// Ex: Rx= add(Rt,#12)
10901090
// memw(Rx+#0) = Rs

llvm/lib/Target/Hexagon/HexagonPeephole.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- HexagonPeephole.cpp - Hexagon Peephole Optimiztions ---------------===//
1+
//===-- HexagonPeephole.cpp - Hexagon Peephole Optimizations --------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

llvm/lib/Target/Hexagon/HexagonPseudo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def PS_call_stk : T_Call<"">;
185185
// This pseudo instruction is used to replace int_hexagon_instrprof_custom intrinsic
186186
// with a call to custom handler passed as the first argument to the intrinsic.
187187

188-
// Pleae Note:
188+
// Please Note:
189189
// 1) The call to the custom handler is being treated as a special one as the
190190
// callee is responsible for saving and restoring all the registers it needs
191191
// to modify. This includes caller saved registers as well as r0-r5 argument

llvm/lib/Target/Hexagon/HexagonSubtarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ bool HexagonSubtarget::isBestZeroLatency(SUnit *Src, SUnit *Dst,
686686
restoreLatency(Src, DstBest);
687687
}
688688

689-
// Attempt to find another opprotunity for zero latency in a different
689+
// Attempt to find another opportunity for zero latency in a different
690690
// dependence.
691691
if (SrcBest && DstBest)
692692
// If there is an edge from SrcBest to DstBst, then try to change that

llvm/lib/Target/Hexagon/HexagonTfrCleanup.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
// This pass is to address a situation that appears after register allocaion
9-
// evey now and then, namely a register copy from a source that was defined
8+
// This pass is to address a situation that appears after register allocation
9+
// every now and then, namely a register copy from a source that was defined
1010
// as an immediate value in the same block (usually just before the copy).
1111
//
1212
// Here is an example of actual code emitted that shows this problem:

llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ bool HexagonPacketizerList::canPromoteToDotCur(const MachineInstr &MI,
440440
return false;
441441

442442
// Check for existing uses of a vector register within the packet which
443-
// would be affected by converting a vector load into .cur formt.
443+
// would be affected by converting a vector load into .cur format.
444444
for (auto *BI : CurrentPacketMIs) {
445445
LLVM_DEBUG(dbgs() << "packet has "; BI->dump(););
446446
if (BI->readsRegister(DepReg, MF.getSubtarget().getRegisterInfo()))
@@ -750,7 +750,7 @@ bool HexagonPacketizerList::canPromoteToNewValueStore(const MachineInstr &MI,
750750
// modified by they should not be modified between the producer and the store
751751
// instruction as it will make them both conditional on different values.
752752
// We already know this to be true for all the instructions before and
753-
// including PacketMI. Howerver, we need to perform the check for the
753+
// including PacketMI. However, we need to perform the check for the
754754
// remaining instructions in the packet.
755755

756756
unsigned StartCheck = 0;
@@ -868,7 +868,7 @@ bool HexagonPacketizerList::canPromoteToDotNew(const MachineInstr &MI,
868868
if (PI.isImplicitDef())
869869
return false;
870870

871-
// If dependency is trough an implicitly defined register, we should not
871+
// If dependency is through an implicitly defined register, we should not
872872
// newify the use.
873873
if (isImplicitDependency(PI, true, DepReg) ||
874874
isImplicitDependency(MI, false, DepReg))
@@ -989,7 +989,7 @@ bool HexagonPacketizerList::arePredicatesComplements(MachineInstr &MI1,
989989
// We attempt to detect it by analyzing existing dependencies in the packet.
990990

991991
// Analyze relationships between all existing members of the packet.
992-
// Look for Anti dependecy on the same predicate reg as used in the
992+
// Look for Anti dependency on the same predicate reg as used in the
993993
// candidate.
994994
for (auto *I : CurrentPacketMIs) {
995995
// Scheduling Unit for current insn in the packet.
@@ -1276,7 +1276,7 @@ bool HexagonPacketizerList::hasRegMaskDependence(const MachineInstr &I,
12761276
// occur on calls, and the problematic case is when we add an instruction
12771277
// defining a register R to a packet that has a call that clobbers R via
12781278
// a regmask. Those cannot be packetized together, because the call will
1279-
// be executed last. That's also a reson why it is ok to add a call
1279+
// be executed last. That's also a reason why it is ok to add a call
12801280
// clobbering R to a packet that defines R.
12811281

12821282
// Look for regmasks in J.
@@ -1450,7 +1450,7 @@ bool HexagonPacketizerList::isLegalToPacketizeTogether(SUnit *SUI, SUnit *SUJ) {
14501450
continue;
14511451
}
14521452

1453-
// Data dpendence ok if we have load.cur.
1453+
// Data dependence ok if we have load.cur.
14541454
if (DepType == SDep::Data && HII->isDotCurInst(J)) {
14551455
if (HII->isHVXVec(I))
14561456
continue;
@@ -1843,7 +1843,7 @@ bool HexagonPacketizerList::shouldAddToPacket(const MachineInstr &MI) {
18431843
// with any other instruction in the existing packet.
18441844
auto &HST = MI.getParent()->getParent()->getSubtarget<HexagonSubtarget>();
18451845
// Constraint 1: Only one duplex allowed per packet.
1846-
// Constraint 2: Consider duplex checks only if there is atleast one
1846+
// Constraint 2: Consider duplex checks only if there is at least one
18471847
// instruction in a packet.
18481848
// Constraint 3: If one of the existing instructions in the packet has a
18491849
// SLOT0 only instruction that can not be duplexed, do not attempt to form

0 commit comments

Comments
 (0)