Skip to content

Commit 214f413

Browse files
committed
[PullbackCloner] Handled move_value instructions.
The handling is just the same as for begin_borrow and copy_value insts.
1 parent ec15dd7 commit 214f413

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/SILOptimizer/Differentiation/PullbackCloner.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,6 +1569,11 @@ class PullbackCloner::Implementation final
15691569
visitValueOwnershipInst(bbi);
15701570
}
15711571

1572+
/// Handle `move_value` instruction.
1573+
/// Original: y = move_value x
1574+
/// Adjoint: adj[x] += adj[y]
1575+
void visitMoveValueInst(MoveValueInst *mvi) { visitValueOwnershipInst(mvi); }
1576+
15721577
/// Handle `begin_access` instruction.
15731578
/// Original: y = begin_access x
15741579
/// Adjoint: nothing

0 commit comments

Comments
 (0)