Skip to content

Commit cb2fc37

Browse files
Update llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
SReg_64 is part of SReg_64_EncodableRegClass. Co-authored-by: Stanislav Mekhanoshin <[email protected]>
1 parent 0a1f745 commit cb2fc37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ void SIInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
899899
}
900900

901901
if (DestReg == AMDGPU::VCC) {
902-
if (AMDGPU::SReg_64RegClass.contains(SrcReg) ||
902+
if (AMDGPU::SReg_64_EncodableRegClassSrcReg)) {
903903
AMDGPU::SReg_64_EncodableRegClass.contains(SrcReg)) {
904904
BuildMI(MBB, MI, DL, get(AMDGPU::S_MOV_B64), AMDGPU::VCC)
905905
.addReg(SrcReg, getKillRegState(KillSrc));

0 commit comments

Comments
 (0)