This is an archive of the discontinued LLVM Phabricator instance.

[Inliner] Propagate SROA analysis through invariant group intrinsics
ClosedPublic

Authored by aeubanks on Apr 10 2021, 12:02 PM.

Details

Summary

SROA can handle invariant group intrinsics, let the inliner know that
for better heuristics when the intrinsics are present.

This fixes size issues in a couple files when turning on
-fstrict-vtable-pointers in Chrome.

Diff Detail

Event Timeline

aeubanks created this revision.Apr 10 2021, 12:02 PM
aeubanks requested review of this revision.Apr 10 2021, 12:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2021, 12:02 PM
mtrofin accepted this revision.Apr 12 2021, 9:39 AM

The paranoid in me would argue for having a flag enabling this, should there be any regressions, but if we feel this is benign, ok.

This revision is now accepted and ready to land.Apr 12 2021, 9:39 AM
rnk accepted this revision.Apr 12 2021, 9:41 AM

lgtm

The paranoid in me would argue for having a flag enabling this, should there be any regressions, but if we feel this is benign, ok.

These intrinsics are only emitted under Clang's -fstrict-vtable-pointers flag (which I do hope to turn on by default at some point).

This revision was landed with ongoing or failed builds.Apr 12 2021, 10:55 AM
This revision was automatically updated to reflect the committed changes.