File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2280,7 +2280,7 @@ bool SIInstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
2280
2280
unsigned VMovOpc = MI.getOpcode () == AMDGPU::V_SET_INACTIVE_B64
2281
2281
? AMDGPU::V_MOV_B64_PSEUDO
2282
2282
: AMDGPU::V_MOV_B32_e32;
2283
- Register ExecReg = ST. isWave32 () ? AMDGPU::EXEC_LO : AMDGPU::EXEC ;
2283
+ Register ExecReg = RI. getExec () ;
2284
2284
Register DstReg = MI.getOperand (0 ).getReg ();
2285
2285
MachineOperand &ActiveSrc = MI.getOperand (1 );
2286
2286
MachineOperand &InactiveSrc = MI.getOperand (2 );
@@ -2307,7 +2307,7 @@ bool SIInstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
2307
2307
// present an issue.
2308
2308
// Fallback to V_MOV base lowering in all but the common cases.
2309
2309
const bool VMov64 = VMovOpc != AMDGPU::V_MOV_B32_e32;
2310
- const MachineFunction *MF = MI. getParent ()-> getParent ();
2310
+ const MachineFunction *MF = MBB. getParent ();
2311
2311
const MachineRegisterInfo &MRI = MF->getRegInfo ();
2312
2312
const unsigned Opcode = AMDGPU::V_CNDMASK_B32_e64;
2313
2313
const MCInstrDesc &Desc = get (Opcode);
You can’t perform that action at this time.
0 commit comments