Skip to content

Commit 06ca679

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 06ca679

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

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

901901
if (DestReg == AMDGPU::VCC) {
902-
if (AMDGPU::SReg_64RegClass.contains(SrcReg) ||
903-
AMDGPU::SReg_64_EncodableRegClass.contains(SrcReg)) {
902+
if (AMDGPU::SReg_64_EncodableRegClass.contains(SrcReg)) {
904903
BuildMI(MBB, MI, DL, get(AMDGPU::S_MOV_B64), AMDGPU::VCC)
905904
.addReg(SrcReg, getKillRegState(KillSrc));
906905
} else {

0 commit comments

Comments
 (0)