[PATCH] D118026: [RISCV] Improve the condition of hasRVVFrameObject.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 09:34:48 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVFrameLowering.cpp:978
+          auto Reg = MO.getReg();
+          if (Reg == RISCV::VTYPE || RISCV::VRRegClass.contains(Reg) ||
+              RISCV::VRM2RegClass.contains(Reg) ||
----------------
jacquesguan wrote:
> craig.topper wrote:
> > Does RISCV::VRRegClass.contains work for virtual registers?
> NO, what do you think is a good way to check if there is any VR?
I think using MachineRegisterInfo::getRegClass


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118026



More information about the llvm-commits mailing list