[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:07:42 PDT 2024
================
@@ -47,6 +47,14 @@ static cl::opt<bool> DisableInsertVSETVLPHIOpt(
namespace {
+static VNInfo *getVNInfoFromReg(Register Reg, const MachineInstr &MI,
+ const LiveIntervals *LIS) {
+ auto &LI = LIS->getInterval(Reg);
----------------
preames wrote:
I think you're missing an assertion that Reg is virtual here.
https://github.com/llvm/llvm-project/pull/91440
More information about the llvm-commits
mailing list