Skip to content

Commit c353c76

Browse files
committed
fixup! Fix some typos in machine verifier comments and trace output
1 parent 901a9b3 commit c353c76

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

llvm/lib/CodeGen/MachineVerifier.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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 *potentially* 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;

llvm/test/MachineVerifier/test_g_build_vector.mir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ body: |
1616
; CHECK: Bad machine code: G_BUILD_VECTOR must produce a vector from scalar operands
1717
%3:_(<2 x s32>) = G_BUILD_VECTOR %2
1818
19-
; CHECK: Bad machine code: G_BUILD_VECTOR must have an operand for each elemement
19+
; CHECK: Bad machine code: G_BUILD_VECTOR must have an operand for each element
2020
%4:_(<2 x s32>) = G_BUILD_VECTOR %0, %0, %0, %0
2121
2222
; CHECK: Bad machine code: G_BUILD_VECTOR result element type must match source type
23-
; CHECK: Bad machine code: G_BUILD_VECTOR must have an operand for each elemement
23+
; CHECK: Bad machine code: G_BUILD_VECTOR must have an operand for each element
2424
%5:_(<4 x s16>) = G_BUILD_VECTOR %0, %0
2525
2626
%6:_(s16) = IMPLICIT_DEF
2727
2828
; CHECK: Bad machine code: G_BUILD_VECTOR result element type must match source type
29-
; CHECK: Bad machine code: G_BUILD_VECTOR must have an operand for each elemement
29+
; CHECK: Bad machine code: G_BUILD_VECTOR must have an operand for each element
3030
%7:_(<2 x s32>) = G_BUILD_VECTOR %6, %6, %6, %6
3131
3232
%8:_(p0) = IMPLICIT_DEF

0 commit comments

Comments
 (0)