Skip to content

Commit 58dbdda

Browse files
committed
- Address reviewer comments
1 parent 717735a commit 58dbdda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2280,7 +2280,7 @@ bool SIInstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
22802280
unsigned VMovOpc = MI.getOpcode() == AMDGPU::V_SET_INACTIVE_B64
22812281
? AMDGPU::V_MOV_B64_PSEUDO
22822282
: AMDGPU::V_MOV_B32_e32;
2283-
Register ExecReg = ST.isWave32() ? AMDGPU::EXEC_LO : AMDGPU::EXEC;
2283+
Register ExecReg = RI.getExec();
22842284
Register DstReg = MI.getOperand(0).getReg();
22852285
MachineOperand &ActiveSrc = MI.getOperand(1);
22862286
MachineOperand &InactiveSrc = MI.getOperand(2);
@@ -2307,7 +2307,7 @@ bool SIInstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
23072307
// present an issue.
23082308
// Fallback to V_MOV base lowering in all but the common cases.
23092309
const bool VMov64 = VMovOpc != AMDGPU::V_MOV_B32_e32;
2310-
const MachineFunction *MF = MI.getParent()->getParent();
2310+
const MachineFunction *MF = MBB.getParent();
23112311
const MachineRegisterInfo &MRI = MF->getRegInfo();
23122312
const unsigned Opcode = AMDGPU::V_CNDMASK_B32_e64;
23132313
const MCInstrDesc &Desc = get(Opcode);

0 commit comments

Comments
 (0)