Commit 8ea5eac
authored
[MISched] Fix off-by-one error in debug output with -misched-cutoff=<n> flag (#137988)
This flag instructs the scheduler to stop scheduling after N
instructions, but
in the debug output it appears as if it's scheduling N+1 instructions,
e.g.
$ llc -misched-cutoff=10 -debug-only=machine-scheduler
example.ll 2>&1 | grep "^Scheduling SU" | wc -l
11
as it calls pickNode before calling checkSchedLimit.1 parent 4cc152c commit 8ea5eac
File tree
2 files changed
+7
-5
lines changed- llvm
- lib/CodeGen
- test/CodeGen/AArch64
2 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
1006 | 1009 | | |
1007 | 1010 | | |
1008 | 1011 | | |
1009 | 1012 | | |
1010 | 1013 | | |
1011 | | - | |
1012 | | - | |
1013 | 1014 | | |
1014 | 1015 | | |
1015 | 1016 | | |
| |||
1637 | 1638 | | |
1638 | 1639 | | |
1639 | 1640 | | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
1640 | 1644 | | |
1641 | 1645 | | |
1642 | 1646 | | |
1643 | 1647 | | |
1644 | 1648 | | |
1645 | | - | |
1646 | | - | |
1647 | 1649 | | |
1648 | 1650 | | |
1649 | 1651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments