This is an archive of the discontinued LLVM Phabricator instance.

[PatternMatch] Don't require DataLayout for m_VScale()
ClosedPublic

Authored by nikic on Feb 22 2023, 8:18 AM.

Details

Summary

The m_VScale() matcher is unusual in that it requires a DataLayout. It is currently used to determine the size of the GEP type. However, I believe it is sufficient to check for the canonical <vscale x 1 x i8> form here -- I don't think there's a need to recognize exotic variations like <vscale x 1 x i4> as a vscale constant representation as well.

Diff Detail

Event Timeline

nikic created this revision.Feb 22 2023, 8:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 22 2023, 8:18 AM
nikic requested review of this revision.Feb 22 2023, 8:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 22 2023, 8:18 AM
sdesmalen accepted this revision.Feb 23 2023, 2:38 AM

I agree this is a sensible change to make, LGTM!

This revision is now accepted and ready to land.Feb 23 2023, 2:38 AM
This revision was landed with ongoing or failed builds.Feb 23 2023, 6:30 AM
This revision was automatically updated to reflect the committed changes.