Skip to content

Commit 683a749

Browse files
committed
[OME] Lower move_value to a noop.
1 parent bdbcb8f commit 683a749

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SILOptimizer/Mandatory/OwnershipModelEliminator.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ struct OwnershipModelEliminatorVisitor
135135
bool visitExplicitCopyValueInst(ExplicitCopyValueInst *cvi);
136136
bool visitDestroyValueInst(DestroyValueInst *dvi);
137137
bool visitLoadBorrowInst(LoadBorrowInst *lbi);
138+
bool visitMoveValueInst(MoveValueInst *mvi) {
139+
eraseInstructionAndRAUW(mvi, mvi->getOperand());
140+
return true;
141+
}
138142
bool visitBeginBorrowInst(BeginBorrowInst *bbi) {
139143
eraseInstructionAndRAUW(bbi, bbi->getOperand());
140144
return true;

0 commit comments

Comments
 (0)