Skip to content

Commit

Permalink
fixup! use MRI from RISCVInstructionSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmaitland committed Oct 2, 2024
1 parent 37daa19 commit f2d5a1c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,6 @@ RISCVInstructionSelector::selectSHXADD_UWOp(MachineOperand &Root,

InstructionSelector::ComplexRendererFns
RISCVInstructionSelector::renderVLOp(MachineOperand &Root) const {
MachineRegisterInfo &MRI =
Root.getParent()->getParent()->getParent()->getRegInfo();
assert(Root.isReg() && "Expected operand to be a Register");
MachineInstr *RootDef = MRI.getVRegDef(Root.getReg());

Expand Down

0 comments on commit f2d5a1c

Please sign in to comment.