This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add a command line option to control the LMUL used by TTI's getRegisterBitWidth.
ClosedPublic

Authored by craig.topper on Dec 28 2021, 11:55 AM.

Details

Summary

By default we return the width of an LMUL=1 register. We can enable
testing with larger LMUL values by returning a larger bit width.

This patch adds a RISCV specific option to provide a LMUL which will be
multiplied by the LMUL=1 bit width.

Diff Detail

Event Timeline

craig.topper created this revision.Dec 28 2021, 11:55 AM
craig.topper requested review of this revision.Dec 28 2021, 11:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 28 2021, 11:55 AM
Herald added a subscriber: MaskRay. · View Herald Transcript
pshung added a subscriber: pshung.Jan 5 2022, 7:07 PM
kito-cheng accepted this revision.Jan 7 2022, 7:19 PM

LGTM, I think it's good start to utilizing the feature of LMUL in vector extension for auto vectorization.

This revision is now accepted and ready to land.Jan 7 2022, 7:19 PM
This revision was landed with ongoing or failed builds.Jan 7 2022, 8:02 PM
This revision was automatically updated to reflect the committed changes.