[llvm] [RISCV] Move RISCVInsertVSETVLI to after phi elimination (PR #91440)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri May 10 08:53:07 PDT 2024
================
@@ -493,17 +501,17 @@ class VSETVLIInfo {
assert(hasAVLImm());
return AVLImm;
}
- const MachineInstr &getAVLDefMI() const {
- assert(hasAVLReg() && AVLRegDef.DefMI);
- return *AVLRegDef.DefMI;
+ const VNInfo *getAVLVNInfo() const {
+ assert(hasAVLReg());
+ return AVLRegDef.AVLVNInfo;
}
----------------
preames wrote:
Put some variant of that as a comment in code. Ideally right next to the helper function. :)
https://github.com/llvm/llvm-project/pull/91440
More information about the llvm-commits
mailing list