This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Remove RISCVISD::SPLAT_VECTOR_I64 in favor of RISCVISD::VMV_V_X_VL.
ClosedPublic

Authored by craig.topper on Feb 2 2022, 12:50 PM.

Details

Summary

SPLAT_VECTOR_I64 has the same semantics as RISCVISD::VMV_V_X_VL, it
just assumed VLMax instead of carrying a VL operand.

Include order of RISCVInstrInfoVSDPatterns.td and RISCVInstrInfoVVLPatterns.td has been swapped to avoid moving riscv_vmv_v_x_vl into RISCVInstrInfoVSDPatterns.td and to allow moving other "_vl" SDNodes back to RISCVInstrInfoVVLPatterns.td

Diff Detail

Event Timeline

craig.topper created this revision.Feb 2 2022, 12:50 PM
craig.topper requested review of this revision.Feb 2 2022, 12:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2022, 12:50 PM

Seems like a good cleanup to me, thanks. Maybe one thing would be to include in the description the rationale for swapping VSD and VVL .td files?

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
1906–1907

nit: reflow this comment?

Reflow comment

craig.topper edited the summary of this revision. (Show Details)Feb 3 2022, 7:53 AM
This revision is now accepted and ready to land.Feb 3 2022, 8:09 AM
This revision was landed with ongoing or failed builds.Feb 3 2022, 8:30 AM
This revision was automatically updated to reflect the committed changes.