4 ms·
> Three words: static single assignment. If you can work out the dataflow of a function you already have everything you need to order loads in the most efficien
by jcranmer 8y ago
> Three words: static single assignment. If you can work out the dataflow of a function you already have everything you need to order loads in the most efficient way possible
The ordering of loads has almost nothing to do with dataflow (with the slight caveat that data dependencies from loads guarantees a small amount of the memory order). I'm speaking from experience here, any computation DAG model is going to very quickly run into the problems of dealing with branches and the inherently undecidable problem of static alias analysis.