Skip to content

Commit 86b8f69

Browse files
committed
AMDGPU: Reorder checks
1 parent 8d31392 commit 86b8f69

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/AMDGPU/SIPreAllocateWWMRegs.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,10 @@ bool SIPreAllocateWWMRegs::processDef(MachineOperand &MO) {
9292
return false;
9393

9494
Register Reg = MO.getReg();
95-
96-
if (!TRI->isVGPR(*MRI, Reg))
95+
if (Reg.isPhysical())
9796
return false;
9897

99-
if (Reg.isPhysical())
98+
if (!TRI->isVGPR(*MRI, Reg))
10099
return false;
101100

102101
if (VRM->hasPhys(Reg))

0 commit comments

Comments
 (0)