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

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 02:10:54 PDT 2022


jacquesguan 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) ||
----------------
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?


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