Skip to content

Commit 896fb4b

Browse files
jrbyrnesjayfoad
andauthored
Update llvm/lib/Target/AMDGPU/AMDGPUPrepareAGPRAlloc.cpp
Co-authored-by: Jay Foad <[email protected]>
1 parent 4dfc7ab commit 896fb4b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/Target/AMDGPU/AMDGPUPrepareAGPRAlloc.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,7 @@ bool AMDGPUPrepareAGPRAllocImpl::run(MachineFunction &MF) {
131131
if (!InflateToAVClass)
132132
continue;
133133

134-
for (MachineOperand &Op : MI.operands()) {
135-
if (!Op.isReg() || !Op.isDef())
136-
continue;
137-
134+
for (MachineOperand &Op : MI.all_defs()) {
138135
Register DefReg = Op.getReg();
139136
if (DefReg.isPhysical())
140137
continue;

0 commit comments

Comments
 (0)