There is no need to emit alias metadata for scalars, as basicaa will easily
distinguish them from arrays. This reduces the size of the metadata we generate.
This is especially useful after we moved to -polly-position=before-vectorizer,
where a lot more scalar dependences are introduced, which increased the size of
the alias analysis metadata and made us commonly reach the limits after which
we do not emit alias metadata that have been introduced to prevent quadratic
growth of this alias metadata.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM!
lib/CodeGen/IRBuilder.cpp | ||
---|---|---|
65 ↗ | (On Diff #112230) | [Suggestion] SmallVector and/or reserve()? |
67 ↗ | (On Diff #112230) | [Followup] Is it easily possible to determine whether there are uses of this Array left in the SCoP (e.g. MaximalStaticExpander would remove all uses of an array and replace it to another; no need to generate metadata for the old one) |