[llvm] [MISched] Implement `UnanalyzableFrontier`-based DAG construction algorithm (PR #227375)

Nathan Corbyn via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 3 02:13:04 PDT 2026


cofibrant wrote:

> I'm still trying to understand this better, but it feels like there should be some combination of tracking disjoint underlying objects (so two pointers to two different underlying objects don't interfere with each other) and deferring creating a new sequencing store if AA says pointers don't alias. But this is all very fuzzy in my head.

This is very close to a description of the approach I've implemented! Memory operations targeting distinct unanalyzable underlying objects almost always report as may alias so we *expect* writes to distinct pointers do interfere. It's only when the pointers target the same base object that difference offsets can be proven not to alias and this is what we use the frontier for. 

> It'd also be good to get numbers on this approach + removing `-dag-maps-huge-region` since that's the ultimate goal right?

Ultimately I plan to alter the semantics so that `--dag-maps-huge-region` triggers a promotion to a sequencing store when the frontier gets too large but I do have numbers for effecting disabling:

https://llvm-compile-time-tracker.com/compare.php?from=385c7a62eea6d24f8caf322cbbea787fefad46eb&to=b76e15fefe7d10065d64d6c07f03ed488d291a2e&stat=instructions:u

(The baseline here is with the new approach already enabled.) 

https://github.com/llvm/llvm-project/pull/227375


More information about the llvm-commits mailing list