[llvm] d9eda6b - [MLGO] Remove extranous check lines from test input
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 17 19:52:20 PST 2024
Author: Aiden Grossman
Date: 2024-11-18T03:52:13Z
New Revision: d9eda6b2f3843cf63fa36e7d5d670ca225cbcbd7
URL: https://github.com/llvm/llvm-project/commit/d9eda6b2f3843cf63fa36e7d5d670ca225cbcbd7
DIFF: https://github.com/llvm/llvm-project/commit/d9eda6b2f3843cf63fa36e7d5d670ca225cbcbd7.diff
LOG: [MLGO] Remove extranous check lines from test input
This patch removes check lines from a test input. It was originally
copied from a test that had assertions automatically generated, but
given we only use it as an input, the check lines do absolutely nothing.
Remove them to improve readability of the test/prevent confusion.
Added:
Modified:
llvm/test/CodeGen/MLRegAlloc/Inputs/input.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/MLRegAlloc/Inputs/input.ll b/llvm/test/CodeGen/MLRegAlloc/Inputs/input.ll
index 4d874da7aef265..17c63fd03c76ad 100644
--- a/llvm/test/CodeGen/MLRegAlloc/Inputs/input.ll
+++ b/llvm/test/CodeGen/MLRegAlloc/Inputs/input.ll
@@ -14,308 +14,6 @@
@syCTRO = external global i32, align 4
define i8* @SyFgets(i8* %line, i64 %length, i64 %fid) {
-; CHECK-LABEL: SyFgets:
-; CHECK: ## %bb.0: ## %entry
-; CHECK-NEXT: pushq %rbp
-; CHECK-NEXT: .cfi_def_cfa_offset 16
-; CHECK-NEXT: pushq %r15
-; CHECK-NEXT: .cfi_def_cfa_offset 24
-; CHECK-NEXT: pushq %r14
-; CHECK-NEXT: .cfi_def_cfa_offset 32
-; CHECK-NEXT: pushq %r13
-; CHECK-NEXT: .cfi_def_cfa_offset 40
-; CHECK-NEXT: pushq %r12
-; CHECK-NEXT: .cfi_def_cfa_offset 48
-; CHECK-NEXT: pushq %rbx
-; CHECK-NEXT: .cfi_def_cfa_offset 56
-; CHECK-NEXT: subq $552, %rsp ## imm = 0x228
-; CHECK-NEXT: .cfi_def_cfa_offset 608
-; CHECK-NEXT: .cfi_offset %rbx, -56
-; CHECK-NEXT: .cfi_offset %r12, -48
-; CHECK-NEXT: .cfi_offset %r13, -40
-; CHECK-NEXT: .cfi_offset %r14, -32
-; CHECK-NEXT: .cfi_offset %r15, -24
-; CHECK-NEXT: .cfi_offset %rbp, -16
-; CHECK-NEXT: testq $-3, %rdx
-; CHECK-NEXT: jne LBB0_4
-; CHECK-NEXT: ## %bb.1: ## %if.end
-; CHECK-NEXT: xorl %eax, %eax
-; CHECK-NEXT: testb %al, %al
-; CHECK-NEXT: jne LBB0_5
-; CHECK-NEXT: ## %bb.2: ## %if.then4
-; CHECK-NEXT: xorl %eax, %eax
-; CHECK-NEXT: testb %al, %al
-; CHECK-NEXT: je LBB0_55
-; CHECK-NEXT: ## %bb.3: ## %SyTime.exit
-; CHECK-NEXT: xorl %eax, %eax
-; CHECK-NEXT: testb %al, %al
-; CHECK-NEXT: je LBB0_55
-; CHECK-NEXT: LBB0_4: ## %cleanup
-; CHECK-NEXT: addq $552, %rsp ## imm = 0x228
-; CHECK-NEXT: popq %rbx
-; CHECK-NEXT: popq %r12
-; CHECK-NEXT: popq %r13
-; CHECK-NEXT: popq %r14
-; CHECK-NEXT: popq %r15
-; CHECK-NEXT: popq %rbp
-; CHECK-NEXT: retq
-; CHECK-NEXT: LBB0_5: ## %if.end25
-; CHECK-NEXT: xorl %eax, %eax
-; CHECK-NEXT: testb %al, %al
-; CHECK-NEXT: je LBB0_55
-; CHECK-NEXT: ## %bb.6: ## %SyTime.exit2720
-; CHECK-NEXT: movq %rdx, %rbx
-; CHECK-NEXT: movq %rdi, %rbp
-; CHECK-NEXT: leaq {{[0-9]+}}(%rsp), %rax
-; CHECK-NEXT: leaq {{[0-9]+}}(%rsp), %rcx
-; CHECK-NEXT: cmpq %rax, %rcx
-; CHECK-NEXT: jae LBB0_8
-; CHECK-NEXT: ## %bb.7: ## %for.body.lr.ph
-; CHECK-NEXT: movl $512, %edx ## imm = 0x200
-; CHECK-NEXT: movl $32, %esi
-; CHECK-NEXT: callq _memset
-; CHECK-NEXT: LBB0_8: ## %while.body.preheader
-; CHECK-NEXT: imulq $1040, %rbx, %rax ## imm = 0x410
-; CHECK-NEXT: movq _syBuf at GOTPCREL(%rip), %rcx
-; CHECK-NEXT: leaq 8(%rcx,%rax), %rdx
-; CHECK-NEXT: movl $1, %r15d
-; CHECK-NEXT: movq _syCTRO at GOTPCREL(%rip), %rax
-; CHECK-NEXT: movb $1, %cl
-; CHECK-NEXT: .p2align 4, 0x90
-; CHECK-NEXT: LBB0_9: ## %do.body
-; CHECK-NEXT: ## =>This Inner Loop Header: Depth=1
-; CHECK-NEXT: movl $0, (%rax)
-; CHECK-NEXT: testb %cl, %cl
-; CHECK-NEXT: jne LBB0_9
-; CHECK-NEXT: ## %bb.10: ## %do.end
-; CHECK-NEXT: movq %rdx, {{[-0-9]+}}(%r{{[sb]}}p) ## 8-byte Spill
-; CHECK-NEXT: movq %rbp, {{[-0-9]+}}(%r{{[sb]}}p) ## 8-byte Spill
-; CHECK-NEXT: xorl %r13d, %r13d
-; CHECK-NEXT: testb %r13b, %r13b
-; CHECK-NEXT: jne LBB0_11
-; CHECK-NEXT: ## %bb.12: ## %while.body200.preheader
-; CHECK-NEXT: xorl %r12d, %r12d
-; CHECK-NEXT: leaq LJTI0_0(%rip), %rdx
-; CHECK-NEXT: leaq LJTI0_1(%rip), %rbx
-; CHECK-NEXT: movl $0, {{[-0-9]+}}(%r{{[sb]}}p) ## 4-byte Folded Spill
-; CHECK-NEXT: xorl %r14d, %r14d
-; CHECK-NEXT: jmp LBB0_13
-; CHECK-NEXT: .p2align 4, 0x90
-; CHECK-NEXT: LBB0_20: ## %sw.bb256
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: movl %r13d, %r14d
-; CHECK-NEXT: LBB0_21: ## %while.cond197.backedge
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: decl %r15d
-; CHECK-NEXT: testl %r15d, %r15d
-; CHECK-NEXT: movl %r14d, %r13d
-; CHECK-NEXT: jle LBB0_22
-; CHECK-NEXT: LBB0_13: ## %while.body200
-; CHECK-NEXT: ## =>This Loop Header: Depth=1
-; CHECK-NEXT: ## Child Loop BB0_29 Depth 2
-; CHECK-NEXT: ## Child Loop BB0_38 Depth 2
-; CHECK-NEXT: leal -268(%r13), %eax
-; CHECK-NEXT: cmpl $105, %eax
-; CHECK-NEXT: ja LBB0_14
-; CHECK-NEXT: ## %bb.56: ## %while.body200
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: movslq (%rbx,%rax,4), %rax
-; CHECK-NEXT: addq %rbx, %rax
-; CHECK-NEXT: jmpq *%rax
-; CHECK-NEXT: LBB0_44: ## %while.cond1037.preheader
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: testb %r12b, %r12b
-; CHECK-NEXT: movl %r13d, %r14d
-; CHECK-NEXT: jne LBB0_21
-; CHECK-NEXT: jmp LBB0_55
-; CHECK-NEXT: .p2align 4, 0x90
-; CHECK-NEXT: LBB0_14: ## %while.body200
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: leal 1(%r13), %eax
-; CHECK-NEXT: cmpl $21, %eax
-; CHECK-NEXT: ja LBB0_20
-; CHECK-NEXT: ## %bb.15: ## %while.body200
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: movl $-1, %r14d
-; CHECK-NEXT: movslq (%rdx,%rax,4), %rax
-; CHECK-NEXT: addq %rdx, %rax
-; CHECK-NEXT: jmpq *%rax
-; CHECK-NEXT: LBB0_18: ## %while.cond201.preheader
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: movl $1, %r14d
-; CHECK-NEXT: jmp LBB0_21
-; CHECK-NEXT: LBB0_26: ## %sw.bb474
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: testb %r12b, %r12b
-; CHECK-NEXT: ## implicit-def: $rbp
-; CHECK-NEXT: jne LBB0_34
-; CHECK-NEXT: ## %bb.27: ## %do.body479.preheader
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: testb %r12b, %r12b
-; CHECK-NEXT: ## implicit-def: $rbp
-; CHECK-NEXT: jne LBB0_34
-; CHECK-NEXT: ## %bb.28: ## %land.rhs485.preheader
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: ## implicit-def: $rax
-; CHECK-NEXT: jmp LBB0_29
-; CHECK-NEXT: .p2align 4, 0x90
-; CHECK-NEXT: LBB0_32: ## %do.body479.backedge
-; CHECK-NEXT: ## in Loop: Header=BB0_29 Depth=2
-; CHECK-NEXT: leaq 1(%rbp), %rax
-; CHECK-NEXT: testb %r12b, %r12b
-; CHECK-NEXT: je LBB0_33
-; CHECK-NEXT: LBB0_29: ## %land.rhs485
-; CHECK-NEXT: ## Parent Loop BB0_13 Depth=1
-; CHECK-NEXT: ## => This Inner Loop Header: Depth=2
-; CHECK-NEXT: testb %al, %al
-; CHECK-NEXT: js LBB0_55
-; CHECK-NEXT: ## %bb.30: ## %cond.true.i.i2780
-; CHECK-NEXT: ## in Loop: Header=BB0_29 Depth=2
-; CHECK-NEXT: movq %rax, %rbp
-; CHECK-NEXT: testb %r12b, %r12b
-; CHECK-NEXT: jne LBB0_32
-; CHECK-NEXT: ## %bb.31: ## %lor.rhs500
-; CHECK-NEXT: ## in Loop: Header=BB0_29 Depth=2
-; CHECK-NEXT: movl $256, %esi ## imm = 0x100
-; CHECK-NEXT: callq ___maskrune
-; CHECK-NEXT: testb %r12b, %r12b
-; CHECK-NEXT: jne LBB0_32
-; CHECK-NEXT: jmp LBB0_34
-; CHECK-NEXT: LBB0_45: ## %sw.bb1134
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: leaq {{[0-9]+}}(%rsp), %rax
-; CHECK-NEXT: leaq {{[0-9]+}}(%rsp), %rcx
-; CHECK-NEXT: cmpq %rax, %rcx
-; CHECK-NEXT: jb LBB0_55
-; CHECK-NEXT: ## %bb.46: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: movl $0, {{[-0-9]+}}(%r{{[sb]}}p) ## 4-byte Folded Spill
-; CHECK-NEXT: movl $268, %r14d ## imm = 0x10C
-; CHECK-NEXT: jmp LBB0_21
-; CHECK-NEXT: LBB0_40: ## %sw.bb566
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: movl $20, %r14d
-; CHECK-NEXT: jmp LBB0_21
-; CHECK-NEXT: LBB0_19: ## %sw.bb243
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: movl $2, %r14d
-; CHECK-NEXT: jmp LBB0_21
-; CHECK-NEXT: LBB0_33: ## %if.end517.loopexitsplit
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: incq %rbp
-; CHECK-NEXT: LBB0_34: ## %if.end517
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: leal -324(%r14), %eax
-; CHECK-NEXT: cmpl $59, %eax
-; CHECK-NEXT: ja LBB0_35
-; CHECK-NEXT: ## %bb.57: ## %if.end517
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: movabsq $576460756598390785, %rcx ## imm = 0x800000100000001
-; CHECK-NEXT: btq %rax, %rcx
-; CHECK-NEXT: jb LBB0_38
-; CHECK-NEXT: LBB0_35: ## %if.end517
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: cmpl $11, %r14d
-; CHECK-NEXT: je LBB0_38
-; CHECK-NEXT: ## %bb.36: ## %if.end517
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: cmpl $24, %r14d
-; CHECK-NEXT: je LBB0_38
-; CHECK-NEXT: ## %bb.37: ## %if.then532
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: movq _SyFgets.yank at GOTPCREL(%rip), %rax
-; CHECK-NEXT: movb $0, (%rax)
-; CHECK-NEXT: .p2align 4, 0x90
-; CHECK-NEXT: LBB0_38: ## %for.cond534
-; CHECK-NEXT: ## Parent Loop BB0_13 Depth=1
-; CHECK-NEXT: ## => This Inner Loop Header: Depth=2
-; CHECK-NEXT: testb %r12b, %r12b
-; CHECK-NEXT: jne LBB0_38
-; CHECK-NEXT: ## %bb.39: ## %for.cond542.preheader
-; CHECK-NEXT: ## in Loop: Header=BB0_13 Depth=1
-; CHECK-NEXT: testb %r12b, %r12b
-; CHECK-NEXT: movb $0, (%rbp)
-; CHECK-NEXT: movl %r13d, %r14d
-; CHECK-NEXT: leaq LJTI0_0(%rip), %rdx
-; CHECK-NEXT: jmp LBB0_21
-; CHECK-NEXT: .p2align 4, 0x90
-; CHECK-NEXT: LBB0_42: ## %while.cond864
-; CHECK-NEXT: ## =>This Inner Loop Header: Depth=1
-; CHECK-NEXT: jmp LBB0_42
-; CHECK-NEXT: .p2align 4, 0x90
-; CHECK-NEXT: LBB0_43: ## %while.cond962
-; CHECK-NEXT: ## =>This Inner Loop Header: Depth=1
-; CHECK-NEXT: jmp LBB0_43
-; CHECK-NEXT: .p2align 4, 0x90
-; CHECK-NEXT: LBB0_25: ## %for.cond357
-; CHECK-NEXT: ## =>This Inner Loop Header: Depth=1
-; CHECK-NEXT: jmp LBB0_25
-; CHECK-NEXT: LBB0_11:
-; CHECK-NEXT: movl $0, {{[-0-9]+}}(%r{{[sb]}}p) ## 4-byte Folded Spill
-; CHECK-NEXT: xorl %r14d, %r14d
-; CHECK-NEXT: LBB0_22: ## %while.end1465
-; CHECK-NEXT: incl %r14d
-; CHECK-NEXT: cmpl $16, %r14d
-; CHECK-NEXT: ja LBB0_50
-; CHECK-NEXT: ## %bb.23: ## %while.end1465
-; CHECK-NEXT: movl $83969, %eax ## imm = 0x14801
-; CHECK-NEXT: btl %r14d, %eax
-; CHECK-NEXT: jae LBB0_50
-; CHECK-NEXT: ## %bb.24:
-; CHECK-NEXT: xorl %ebp, %ebp
-; CHECK-NEXT: movq {{[-0-9]+}}(%r{{[sb]}}p), %rbx ## 8-byte Reload
-; CHECK-NEXT: LBB0_48: ## %if.then1477
-; CHECK-NEXT: movl $1, %edx
-; CHECK-NEXT: callq _write
-; CHECK-NEXT: subq %rbp, %rbx
-; CHECK-NEXT: movq _syHistory at GOTPCREL(%rip), %rax
-; CHECK-NEXT: leaq 8189(%rbx,%rax), %rax
-; CHECK-NEXT: .p2align 4, 0x90
-; CHECK-NEXT: LBB0_49: ## %for.body1723
-; CHECK-NEXT: ## =>This Inner Loop Header: Depth=1
-; CHECK-NEXT: decq %rax
-; CHECK-NEXT: jmp LBB0_49
-; CHECK-NEXT: LBB0_47: ## %if.then1477.loopexit
-; CHECK-NEXT: movq {{[-0-9]+}}(%r{{[sb]}}p), %rbx ## 8-byte Reload
-; CHECK-NEXT: movq %rbx, %rbp
-; CHECK-NEXT: jmp LBB0_48
-; CHECK-NEXT: LBB0_16: ## %while.cond635.preheader
-; CHECK-NEXT: xorl %eax, %eax
-; CHECK-NEXT: testb %al, %al
-; CHECK-NEXT: je LBB0_41
-; CHECK-NEXT: .p2align 4, 0x90
-; CHECK-NEXT: LBB0_17: ## %for.body643.us
-; CHECK-NEXT: ## =>This Inner Loop Header: Depth=1
-; CHECK-NEXT: jmp LBB0_17
-; CHECK-NEXT: .p2align 4, 0x90
-; CHECK-NEXT: LBB0_41: ## %while.cond661
-; CHECK-NEXT: ## =>This Inner Loop Header: Depth=1
-; CHECK-NEXT: jmp LBB0_41
-; CHECK-NEXT: LBB0_50: ## %for.cond1480.preheader
-; CHECK-NEXT: movl $512, %eax ## imm = 0x200
-; CHECK-NEXT: cmpq %rax, %rax
-; CHECK-NEXT: jae LBB0_55
-; CHECK-NEXT: ## %bb.51: ## %for.body1664.lr.ph
-; CHECK-NEXT: xorl %eax, %eax
-; CHECK-NEXT: testb %al, %al
-; CHECK-NEXT: movq {{[-0-9]+}}(%r{{[sb]}}p), %rbx ## 8-byte Reload
-; CHECK-NEXT: movl {{[-0-9]+}}(%r{{[sb]}}p), %ebp ## 4-byte Reload
-; CHECK-NEXT: jne LBB0_54
-; CHECK-NEXT: ## %bb.52: ## %while.body1679.preheader
-; CHECK-NEXT: incl %ebp
-; CHECK-NEXT: .p2align 4, 0x90
-; CHECK-NEXT: LBB0_53: ## %while.body1679
-; CHECK-NEXT: ## =>This Inner Loop Header: Depth=1
-; CHECK-NEXT: movq (%rbx), %rdi
-; CHECK-NEXT: callq _fileno
-; CHECK-NEXT: movslq %ebp, %rax
-; CHECK-NEXT: leal 1(%rax), %ebp
-; CHECK-NEXT: cmpq %rax, %rax
-; CHECK-NEXT: jl LBB0_53
-; CHECK-NEXT: LBB0_54: ## %while.cond1683.preheader
-; CHECK-NEXT: xorl %eax, %eax
-; CHECK-NEXT: testb %al, %al
-; CHECK-NEXT: LBB0_55: ## %if.then.i
-; CHECK-NEXT: ud2
entry:
%sub.ptr.rhs.cast646 = ptrtoint i8* %line to i64
%old = alloca [512 x i8], align 16
More information about the llvm-commits
mailing list