This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] RVV stack needs two emergency stack slots.
AbandonedPublic

Authored by NickHung on Mar 22 2021, 8:05 PM.

Details

Reviewers
HsiangKai
Summary

D94465, Function RISCVInstrInfo::getVLENFactoredAmount handles NumOfVReg.
If it's not the power of two, MUL instruction needs two virtual registers (SizeOfVector and VN).
So, two emergency stack slots may be needed for the RegScavenger.

Diff Detail