This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Make lowerVECTOR_SHUFFLEAsVSlidedown follow source until not EXTRACT_SUBVECTOR.
ClosedPublic

Authored by HanKuanChen on Nov 15 2022, 4:31 AM.

Details

Summary

Current lowerVECTOR_SHUFFLEAsVSlidedown only seeks whether input are
EXTRACT_SUBVECTOR and their source are same. The commit will make the
function seek input and their source until they are not
EXTRACT_SUBVECTOR.

Diff Detail

Event Timeline

HanKuanChen created this revision.Nov 15 2022, 4:31 AM
HanKuanChen requested review of this revision.Nov 15 2022, 4:31 AM
craig.topper added inline comments.Nov 16 2022, 9:12 PM
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
2972

Can we accumulate the indices into a single value here instead of putting them in a vector?

2993

unsigned is probably sufficient. I don't think you need uint64_t

2994

Use makeArrayRef

2996

makeArrayRef

Apply Craig's comment.

This revision is now accepted and ready to land.Nov 17 2022, 10:18 PM
This revision was landed with ongoing or failed builds.Nov 17 2022, 10:33 PM
This revision was automatically updated to reflect the committed changes.