[PATCH] D123581: [RISCV] Teach vsetvli insertion to handle VSETVLIInfo of vl-modified instruction.
Yeting Kuo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 12 18:50:12 PDT 2022
fakepaper56 added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp:57
+ const MachineInstr *VLModifier;
+
----------------
jacquesguan wrote:
> 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.
The patch also supports `emitVSETVLIPHIs` which detects the `VSETVLIInfo` of predecessors. I think it is hard to introduce "previous" `VSETVLIInfo` into multiple predecessors.
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