Erik Eckstein
199eb1d6e7
Optimizer: remove redundant copy_block instructions
Removes a `copy_block` if its only uses, beside ownership instructions, are callees of function calls
```
%2 = copy_block %0
%3 = begin_borrow [lexical] %2
%4 = apply %3() : $@convention(block) @noescape () -> ()
end_borrow %3
destroy_value %2
```
->
```
%4 = apply %0() : $@convention(block) @noescape () -> ()
```
rdar://118521396
2025-04-15 11:02:39 +02:00
..
2025-04-15 11:02:39 +02:00
2025-02-12 09:01:11 +01:00
2025-04-03 23:04:49 +02:00
2025-03-15 08:32:58 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-03-14 09:45:27 +01:00
2025-04-05 09:00:30 +02:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-03-14 09:49:53 +01:00
2025-04-15 11:02:39 +02:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 15:18:39 +01:00
2025-02-12 22:37:49 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-02-12 09:01:11 +01:00
2025-03-07 15:59:34 +01:00