Skip to content

Commit 1b17398

Browse files
committed
Return true for changed
Change-Id: I8e7681f4920c9dee1bb4fb1b303c4c886c1969e3
1 parent ec17ae2 commit 1b17398

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/AMDGPU/SIFoldOperands.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,6 +1689,7 @@ bool SIFoldOperandsImpl::tryConstantFoldOp(MachineInstr *MI) const {
16891689
// y = add x, 0 -> y = copy x
16901690
MI->removeOperand(Src1Idx);
16911691
mutateCopyOp(*MI, TII->get(AMDGPU::COPY));
1692+
return true;
16921693
}
16931694
}
16941695

0 commit comments

Comments
 (0)