Skip to content

Commit f807526

Browse files
frederik-harsenm
andauthored
Update llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
Co-authored-by: Matt Arsenault <[email protected]>
1 parent 3b2dc23 commit f807526

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,10 +1103,10 @@ void SIPeepholeSDWA::convertToImplicitVcc(MachineInstr &MI,
11031103
if (CarryDef->isCompare() && TII->isVOP3(*CarryDef) &&
11041104
MRI->hasOneUse(CarryIn.getReg()))
11051105
CarryDef->substituteRegister(CarryIn.getReg(), Vcc, 0, *TRI);
1106-
else
1107-
BuildMI(MBB, MI, MI.getDebugLoc(), TII->get(AMDGPU::COPY))
1108-
.addReg(Vcc, RegState::Define)
1106+
else {
1107+
BuildMI(MBB, MI, MI.getDebugLoc(), TII->get(AMDGPU::COPY), Vcc)
11091108
.add(CarryIn);
1109+
}
11101110

11111111
auto Converted = BuildMI(MBB, MI, MI.getDebugLoc(),
11121112
TII->get(AMDGPU::getVOPe32(MI.getOpcode())))

0 commit comments

Comments
 (0)