give endrange priority (#12870)

* uncomment line

* try giving endrange priority
This commit is contained in:
Sieds Lykles
2025-10-23 05:19:13 +02:00
committed by GitHub
parent 2f95c10702
commit 914defd55d

View File

@@ -45,7 +45,8 @@ def linearize(u:UOp) -> list[UOp]:
if u.op is Ops.LOAD: priority.append(-1000)
if u.op is Ops.BARRIER: priority.append(-1500)
# ranges are scheduled as late as possible so anything that can be outside is
#if u.op is Ops.RANGE: priority = [2000]
# if u.op is Ops.RANGE: priority = [2000]
if u.op is Ops.END: priority = [-1000]
# move defines and consts to the top
if u.op in {Ops.DEFINE_GLOBAL, Ops.DEFINE_LOCAL, Ops.DEFINE_REG, Ops.DEFINE_VAR, Ops.SPECIAL, Ops.CONST}: priority.append(-2000)
priorities[u] = min(priority)