This is an archive of the discontinued LLVM Phabricator instance.

[SROA] Skip uses of allocas where the type is scalable
ClosedPublic

Authored by Allen on Aug 23 2023, 8:40 AM.

Details

Summary

When visiting load and store instructions in SROA skip scalable vectors.
This is relevant in the implementation of the 'arm_sve_vector_bits'
attribute that is used to define VLS types, similar to D85725.

Fix https://gcc.godbolt.org/z/o561P9zj4

Diff Detail

Event Timeline

Allen created this revision.Aug 23 2023, 8:40 AM
Allen requested review of this revision.Aug 23 2023, 8:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 23 2023, 8:40 AM
Matt added a subscriber: Matt.Aug 23 2023, 8:15 PM

Looks fine, but please test the store case as well.

Allen updated this revision to Diff 553025.Aug 24 2023, 12:51 AM

Add store case according comment

Allen edited the summary of this revision. (Show Details)Aug 24 2023, 1:10 AM
nikic accepted this revision.Aug 24 2023, 2:38 AM

LGTM

This revision is now accepted and ready to land.Aug 24 2023, 2:38 AM
This revision was landed with ongoing or failed builds.Aug 24 2023, 3:44 AM
This revision was automatically updated to reflect the committed changes.