[PATCH] D110933: [RISCV] Add a test showing incorrect RVV stack alignment

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 2 23:00:31 PDT 2021


StephenFan added a comment.

If this misalign problem does affect the correct executable of the program contain RVV stack object, and to fix it, the following two ways may make sense:

1. Deal with allocations of RVV vector object like variable sized object.
2. Change the RVV frame layout to what D93750 <https://reviews.llvm.org/D93750> did. Instead of calculating the total RVVStackSize and allocate them all at once, D93750 <https://reviews.llvm.org/D93750> will allocate the RVV stack objects one by one. Thus we can realign for every RVV stack object separately when it was allocating.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110933/new/

https://reviews.llvm.org/D110933



More information about the llvm-commits mailing list