Stochastic Program Optimization
blog.acolyer.org
blog.acolyer.org
Now the GCC results look pretty much exactly like the "STOKE" results...
Are there any actual examples of stochastic optimization techniques outperforming compilers, rather than programmers' woefully lacking knowledge of compilers?
Well, if in effect STOKE is doing dynamic alias analysis, then it's not really inferior, right? Maybe it could be a PGO-style compiler pass?
I think that some of us might overestimate the capability of most software teams, because it's pretty uncommon to find people who know what it means to add __restrict to function args.
STOKE isn't really doing dynamic alias analysis per se, although if run for long enough its results should theoretically be equivalent to such analysis. As the example assembly shows, however, it's far from a sure thing. More generally, things like PGO exist because they specifically do things traditional compiler-level optimizers fundamentally can't. For STOKE to make a similar claim we should see much better code examples than the one shown here.
I disagree, most people will add this keyword when optimizing code.
Most CS conferences are making a big push towards "artifact evaluation," which means that many papers now come with peer-reviewed implementations.
http://theory.stanford.edu/~aiken/publications/papers/asplos...
I thought it was really cool that they managed to find improvements on hand-optimized bit tricks from "Hacker's Delight" this way.