[PATCH] D123581: [RISCV] Teach vsetvli insertion to handle VSETVLIInfo of vl-modified instruction.

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 12 06:00:58 PDT 2022


jacquesguan added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp:57
 
+  const MachineInstr *VLModifier;
+
----------------
Maybe no need to save a pointer in the `VSETVLIInfo`?   I think that we only care about if the previous `VSETVLIInfo` is from a VL modified MI and the current AVL is read from the result of the modified VL. I think maybe we could use a local pointer in `emitVSETVLIs` or somewhere you would like to use it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123581



More information about the llvm-commits mailing list