This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Lower build_vec vid sequences when addend/step doesn't fit in imm
Needs ReviewPublic

Authored by luke on Aug 18 2023, 5:39 AM.

Details

Summary

Previously the addend and step had to fit into the immediate of the
corresponding vadd/vshl. This patch relaxes the constraint so that it uses the
cost model added in D157976 to determine whether or not it's profitable.

Diff Detail