@@ -1549,7 +1549,7 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
15491549 report (" G_BUILD_VECTOR result element type must match source type" , MI);
15501550
15511551 if (DstTy.getNumElements () != MI->getNumOperands () - 1 )
1552- report (" G_BUILD_VECTOR must have an operand for each elemement " , MI);
1552+ report (" G_BUILD_VECTOR must have an operand for each element " , MI);
15531553
15541554 for (const MachineOperand &MO : llvm::drop_begin (MI->operands (), 2 ))
15551555 if (MRI->getType (MI->getOperand (1 ).getReg ()) != MRI->getType (MO.getReg ()))
@@ -2398,11 +2398,11 @@ void MachineVerifier::visitMachineInstrBefore(const MachineInstr *MI) {
23982398
23992399 // The next two checks allow COPY between physical and virtual registers,
24002400 // when the virtual register has a scalable size and the physical register
2401- // has a fixed size. These checks allow COPY between *potentialy* mismatched
2402- // sizes. However, once RegisterBankSelection occurs, MachineVerifier should
2403- // be able to resolve a fixed size for the scalable vector, and at that
2404- // point this function will know for sure whether the sizes are mismatched
2405- // and correctly report a size mismatch.
2401+ // has a fixed size. These checks allow COPY between *potentially*
2402+ // mismatched sizes. However, once RegisterBankSelection occurs,
2403+ // MachineVerifier should be able to resolve a fixed size for the scalable
2404+ // vector, and at that point this function will know for sure whether the
2405+ // sizes are mismatched and correctly report a size mismatch.
24062406 if (SrcReg.isPhysical () && DstReg.isVirtual () && DstSize.isScalable () &&
24072407 !SrcSize.isScalable ())
24082408 break ;
@@ -3213,13 +3213,13 @@ struct VRegFilter {
32133213
32143214private:
32153215 static constexpr unsigned SparseUniverseMax = 10 * 1024 * 8 ;
3216- // VRegs indexed within SparseUniverseMax are tracked by Sparse, those beyound
3217- // are tracked by Dense. The only purpose of the threashold and the Dense set
3216+ // VRegs indexed within SparseUniverseMax are tracked by Sparse, those beyond
3217+ // are tracked by Dense. The only purpose of the threshold and the Dense set
32183218 // is to have a reasonably growing memory usage in pathological cases (large
32193219 // number of very sparse VRegFilter instances live at the same time). In
32203220 // practice even in the worst-by-execution time cases having all elements
32213221 // tracked by Sparse (very large SparseUniverseMax scenario) tends to be more
3222- // space efficient than if tracked by Dense. The threashold is set to keep the
3222+ // space efficient than if tracked by Dense. The threshold is set to keep the
32233223 // worst-case memory usage within 2x of figures determined empirically for
32243224 // "all Dense" scenario in such worst-by-execution-time cases.
32253225 BitVector Sparse;
@@ -3459,7 +3459,7 @@ void MachineVerifier::visitMachineFunctionAfter() {
34593459
34603460 // Check live-in list of each MBB. If a register is live into MBB, check
34613461 // that the register is in regsLiveOut of each predecessor block. Since
3462- // this must come from a definition in the predecesssor or its live-in
3462+ // this must come from a definition in the predecessor or its live-in
34633463 // list, this will catch a live-through case where the predecessor does not
34643464 // have the register in its live-in list. This currently only checks
34653465 // registers that have no aliases, are not allocatable and are not
0 commit comments