This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add a special case to treat riscv-v-vector-bits-min=-1 as meaning use Zvl*b value.
ClosedPublic

Authored by craig.topper on May 4 2022, 1:45 PM.

Details

Summary

riscv-v-vector-bits-min is primarily used to opt-in to the
autovectorizer. The vector width can be determined from Zvl*b.

This patch adds support treating -1 as meaning use Zvl*b so we can
still opt-in to autovectorization without needing to repeat a
vector width already given by Zvl*b or -mcpu.

Diff Detail

Event Timeline

craig.topper created this revision.May 4 2022, 1:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 1:45 PM
craig.topper requested review of this revision.May 4 2022, 1:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 1:45 PM
reames accepted this revision.May 4 2022, 1:53 PM

LGTM

This revision is now accepted and ready to land.May 4 2022, 1:53 PM
This revision was landed with ongoing or failed builds.May 4 2022, 2:36 PM
This revision was automatically updated to reflect the committed changes.