get clang to do less horrible codegen for index calculations

the do-while loop isn't actually necessary, just moving the unr offset is enough, but I'm doing it anyway
This commit is contained in:
dzaima 2025-03-24 17:48:42 +02:00
parent ad73e075e0
commit 68a969b417

View File

@ -163,7 +163,7 @@ def for_mu{bulk, unr, extra}{vars,begin==0,end,iter} = {
i+= unr
}
if (same{flush_max, 1/0}) {
while (i+unr <= m) unr_iter{}
do { unr_iter{} } while (i <= m-unr)
} else {
def done = makelabel{}
def unr_end = m-unr + 1