Skip to content

Commit c5aa773

Browse files
committed
fix comments
1 parent a97b3e6 commit c5aa773

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4884,8 +4884,7 @@ getLegalRegBank(const MachineOperand *NewOp, const MachineOperand *RootOp,
48844884
InstructionSelector::ComplexRendererFns
48854885
AMDGPUInstructionSelector::selectVOP3PRetHelper(MachineOperand &Root,
48864886
bool IsDOT) const {
4887-
MachineRegisterInfo &MRI =
4888-
Root.getParent()->getParent()->getParent()->getRegInfo();
4887+
MachineRegisterInfo &MRI = Root.getParent()->getMF()->getRegInfo();
48894888
auto Results = selectVOP3PModsImpl(&Root, MRI, IsDOT);
48904889
const MachineOperand *Op = Results.first;
48914890
unsigned Mods = Results.second;

0 commit comments

Comments
 (0)