Commit f8d9c7d
committed
[MISched] Fix off-by-one error with -misched-cutoff=<n> flag
This flag instructs the scheduler to stop scheduling after N
instructions, but it currently schedules N+1 instructions, e.g.
$ llc -misched-cutoff=10 -debug-only=machine-scheduler \
example.ll 2>&1 | grep "^Scheduling SU" | wc -l
111 parent 91ad90b commit f8d9c7d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
968 | | - | |
| 968 | + | |
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| |||
0 commit comments