Skip to content
Snippets Groups Projects
Commit 9d7b6802 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Scheduler: Better notion of 'useful' for boostable instructions.

parent 9956ff05
No related branches found
No related tags found
No related merge requests found
...@@ -206,7 +206,6 @@ def generate_loop_schedules_internal(kernel, loop_priority, schedule=[]): ...@@ -206,7 +206,6 @@ def generate_loop_schedules_internal(kernel, loop_priority, schedule=[]):
print "--------------------------------------------" print "--------------------------------------------"
dump_schedule(schedule) dump_schedule(schedule)
if debug_mode: if debug_mode:
print "active:", ",".join(active_inames) print "active:", ",".join(active_inames)
print "entered:", ",".join(entered_inames) print "entered:", ",".join(entered_inames)
...@@ -313,9 +312,17 @@ def generate_loop_schedules_internal(kernel, loop_priority, schedule=[]): ...@@ -313,9 +312,17 @@ def generate_loop_schedules_internal(kernel, loop_priority, schedule=[]):
continue continue
insn = kernel.id_to_insn[insn_id] insn = kernel.id_to_insn[insn_id]
if hypothetical_active_loops <= kernel.insn_inames(insn): if insn.boostable:
useful = True # if insn is boostable, just increasing the number of used
break # inames is enough--not necessarily all must be truly 'useful'.
if iname in kernel.insn_inames(insn):
useful = True
break
else:
if hypothetical_active_loops <= kernel.insn_inames(insn):
useful = True
break
if not useful: if not useful:
if debug_mode: if debug_mode:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment