[PATCH] D117663: [RISCV] Fix the bug in the register allocator caused by reserved BP.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 19 14:50:36 PST 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVFrameLowering.cpp:959
+ // Refer to https://github.com/llvm/llvm-project/issues/53016.
+ return MF.getSubtarget<RISCVSubtarget>().hasStdExtV();
}
----------------
frasercrmck wrote:
> kito-cheng wrote:
> > Maybe `MF.getSubtarget<RISCVSubtarget>().hasVInstructions()`? although that same as `hasStdExtV` for now, but that prevent we need to check `zve*` ext. here in future.
> Yeah, I think that would be best.
+1
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117663/new/
https://reviews.llvm.org/D117663
More information about the llvm-commits
mailing list