diku-dk / futhark

:boom::computer::boom: A data-parallel functional programming language
http://futhark-lang.org
ISC License
2.36k stars 165 forks source link

Remove base from index functions #2083

Closed athas closed 6 months ago

athas commented 6 months ago

With this PR, index functions are now just LMADs, with no extra information.

This results in an overall reduction of copies.

However, some of those copies turn out to be load-bearing, so we need fixes elsewhere, in particular memory expansion.

My hope is that this will lead to the memory handling being simpler and more intentionally (instead of accidentally) correct.