Skip to content

Commit aaef5f0

Browse files
committed
Fix #torelease# undefined errors
1 parent accdebd commit aaef5f0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/codegen/lower_threads.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ function thread_one_loops_expr(
387387
var"#nrequest#" = vsub_nw((var"#nthreads#" % UInt32), 0x00000001)
388388
var"##do#thread##" = var"#nrequest#" 0x00000000
389389
if var"##do#thread##"
390-
var"#threads#tuple#", var"#torelease#tuple#" = Polyester.request_threads(Threads.threadid()%UInt32, var"#nrequest#")
390+
var"#threads#tuple#", var"#torelease#tuple#" = Polyester.request_threads(var"#nrequest#")
391+
# var"#threads#tuple#", var"#torelease#tuple#" = Polyester.request_threads(Threads.threadid()%UInt32, var"#nrequest#")
391392

392393
var"#thread#factor#0#" = var"#nthreads#"
393394
$iterdef
@@ -425,7 +426,7 @@ function thread_one_loops_expr(
425426
end
426427
else# eliminate undef var errors that the compiler should be able to figure out are unreachable, but doesn't
427428
var"#torelease#tuple#" = (zero(Polyester.worker_type()),)
428-
var"#threads#tuple#" = (Polyester.UnsignedIteratorEarlyStop(var"#torelease#", 0x00000000),)
429+
var"#threads#tuple#" = (Polyester.UnsignedIteratorEarlyStop(zero(Polyester.worker_type()), 0x00000000),)
429430
end
430431
end
431432
var"#avx#call#args#" = $avxcall_args
@@ -629,8 +630,8 @@ function thread_two_loops_expr(
629630
end
630631
end
631632
else# eliminate undef var errors that the compiler should be able to figure out are unreachable, but doesn't
632-
var"#torelease#tuple#" = zero(Polyester.worker_type())
633-
var"#threads#tuple#" = Polyester.UnsignedIteratorEarlyStop(var"#torelease#", 0x00000000)
633+
var"#torelease#tuple#" = (zero(Polyester.worker_type()),)
634+
var"#threads#tuple#" = Polyester.UnsignedIteratorEarlyStop(zero(Polyester.worker_type()), 0x00000000)
634635
end
635636
end
636637
# @show $lastboundexpr

0 commit comments

Comments
 (0)