This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Remove lowerSPLAT_VECTOR
ClosedPublic

Authored by craig.topper on Mar 15 2022, 12:27 AM.

Details

Summary

This code handles fixed vector SPLAT_VECTOR, but is never called in
any tests.

We only form fixed vector splat vectors for vXi64 on RV32 as part
of DAGCombine. This will be type legalized to SPLAT_VECTOR_PARTS.
So the Custom handling for SPLAT_VECTOR is never needed.

This patch makes SPLAT_VECTOR for vXi64 'Legal' on RV32 so that
DAGCombine will create it, but there's no need for Custom handler.
It will still be type legalized to SPLAT_VECTOR_PARTS.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 15 2022, 12:27 AM
craig.topper requested review of this revision.Mar 15 2022, 12:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2022, 12:27 AM
frasercrmck accepted this revision.Mar 15 2022, 4:01 AM

Nice, thanks.

This revision is now accepted and ready to land.Mar 15 2022, 4:01 AM
This revision was landed with ongoing or failed builds.Mar 15 2022, 8:22 AM
This revision was automatically updated to reflect the committed changes.