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

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 14 22:51:08 PST 2022


jacquesguan added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVFrameLowering.cpp:976
+      for (const auto &MO : MI.uses())
+        if (MO.isReg() && MO.getReg() == RISCV::VL)
+          return true;
----------------
craig.topper wrote:
> Is it possible to write a function that contains nothing but whole register loads/stores/moves such that no instruction access VL but needs to spill a register?
I am not sure about this, I think maybe it's not possible to generate independent whole register instructions. Do you have any good opinion about the condition?


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