mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CanonicalizeBorrowScope] Look through moves.
When encountering inside a borrow scope a non-lexical move_value or a move_value [lexical] where the borrowed value is itself already lexical, delete the move_value and regard its uses as uses of the moved-from value.
This commit is contained in:
@@ -109,7 +109,7 @@
|
||||
|
||||
namespace swift {
|
||||
|
||||
extern llvm::Statistic NumCopiesEliminated;
|
||||
extern llvm::Statistic NumCopiesAndMovesEliminated;
|
||||
extern llvm::Statistic NumCopiesGenerated;
|
||||
|
||||
/// Insert a copy on this operand. Trace and update stats.
|
||||
|
||||
Reference in New Issue
Block a user