[RISCV] Add early-exit to RVV stack computation. NFCI.
authorFraser Cormack <fraser@codeplay.com>
Wed, 13 Jul 2022 05:41:27 +0000 (06:41 +0100)
committerFraser Cormack <fraser@codeplay.com>
Wed, 13 Jul 2022 07:50:08 +0000 (08:50 +0100)
commitb336cf856e93e834d5ef15c0636da32725e6e013
treee5c9b4286a5ff5c50a16d5d0c53ab07c7dd28445
parent491d27013ddc333336b40fda114f0444cf801697
[RISCV] Add early-exit to RVV stack computation. NFCI.

This patch was split off from D126465, where an early-exit is necessary
as it checks the VLEN and that asserts that V instructions are present.

Since this makes logical sense on its own, I think it's worth landing
regardless of D126465.

Reviewed By: kito-cheng

Differential Revision: https://reviews.llvm.org/D129617
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
llvm/lib/Target/RISCV/RISCVFrameLowering.h