-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MachineOutliner] NFC: Add debug output to overlap pruning code
This had no debug output. Since it was committed as NFC, it had no testcase. The me of today was nerdsniped by the me of 6 years ago and decided that this ought to have a testcase and some debug output.
- Loading branch information
Jessica Paquette
committed
Feb 4, 2023
1 parent
e07452d
commit 51fa032
Showing
2 changed files
with
124 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --include-generated-funcs | ||
# RUN: llc %s -mtriple aarch64 -debug-only=machine-outliner -run-pass=machine-outliner -o - 2>&1 | FileCheck %s | ||
# REQUIRES: asserts | ||
|
||
# CHECK: *** Discarding overlapping candidates *** | ||
# CHECK-NEXT:Searching for overlaps in all repeated sequences... | ||
# CHECK-DAG: Sequence length: 7 | ||
# CHECK-NEXT: Candidates discarded: 0 | ||
# CHECK-NEXT: Candidates kept: 2 | ||
# CHECK-DAG: Sequence length: 8 | ||
# CHECK-NEXT: .. DISCARD candidate @ [5, 12]; overlaps with candidate @ [12, 19] | ||
# CHECK-NEXT: Candidates discarded: 1 | ||
# CHECK-NEXT: Candidates kept: 1 | ||
# CHECK-DAG: Sequence length: 9 | ||
# CHECK-NEXT: .. DISCARD candidate @ [4, 12]; overlaps with candidate @ [11, 19] | ||
# CHECK-NEXT: Candidates discarded: 1 | ||
# CHECK-NEXT: Candidates kept: 1 | ||
# CHECK-DAG: Sequence length: 10 | ||
# CHECK-NEXT: .. DISCARD candidate @ [3, 12]; overlaps with candidate @ [10, 19] | ||
# CHECK-NEXT: Candidates discarded: 1 | ||
# CHECK-NEXT: Candidates kept: 1 | ||
# CHECK-DAG: Sequence length: 11 | ||
# CHECK-NEXT: .. DISCARD candidate @ [2, 12]; overlaps with candidate @ [9, 19] | ||
# CHECK-NEXT: Candidates discarded: 1 | ||
# CHECK-NEXT: Candidates kept: 1 | ||
# CHECK-DAG: Sequence length: 12 | ||
# CHECK-NEXT: .. DISCARD candidate @ [1, 12]; overlaps with candidate @ [8, 19] | ||
# CHECK-NEXT: Candidates discarded: 1 | ||
# CHECK-NEXT: Candidates kept: 1 | ||
# CHECK-DAG: Sequence length: 13 | ||
# CHECK-NEXT: .. DISCARD candidate @ [0, 12]; overlaps with candidate @ [7, 19] | ||
# CHECK-NEXT: Candidates discarded: 1 | ||
# CHECK-NEXT: Candidates kept: 1 | ||
|
||
... | ||
--- | ||
name: overlap | ||
tracksRegLiveness: true | ||
machineFunctionInfo: | ||
hasRedZone: false | ||
body: | | ||
bb.0: | ||
liveins: $x0, $x9 | ||
; CHECK-LABEL: name: overlap | ||
; CHECK: liveins: $x0, $x9 | ||
; CHECK-NEXT: {{ $}} | ||
; CHECK-NEXT: $x9 = ADDXri $x9, 16, 0 | ||
; CHECK-NEXT: $x9 = ADDXri $x9, 16, 0 | ||
; CHECK-NEXT: $x9 = ADDXri $x9, 16, 0 | ||
; CHECK-NEXT: $x9 = ADDXri $x9, 16, 0 | ||
; CHECK-NEXT: $x9 = ADDXri $x9, 16, 0 | ||
; CHECK-NEXT: $x9 = ADDXri $x9, 16, 0 | ||
; CHECK-NEXT: BL @OUTLINED_FUNCTION_0, implicit-def $lr, implicit $sp, implicit-def $lr, implicit-def $x8, implicit-def $x9, implicit $sp, implicit $x0, implicit $x9 | ||
; CHECK-NEXT: BL @OUTLINED_FUNCTION_0, implicit-def $lr, implicit $sp, implicit-def $lr, implicit-def $x8, implicit-def $x9, implicit $sp, implicit $x0, implicit $x9 | ||
; CHECK-NEXT: RET undef $x9 | ||
; fixme: outline! | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x8 = ADDXri $x0, 3, 0 | ||
; outline | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x8 = ADDXri $x0, 3, 0 | ||
; outline | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
$x9 = ADDXri $x9, 16, 0 | ||
RET undef $x9 |