File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %target-swift-frontend -c -O -enable-copy-propagation=true -enable-lexical-lifetimes=true -sil-verify-all -Xllvm -sil-print-final-ossa-module %s | %FileCheck %s
2
2
3
- // REQUIRES: rdar87255563
4
-
5
3
// =============================================================================
6
4
// = DECLARATIONS {{
7
5
// =============================================================================
@@ -26,9 +24,10 @@ public func eliminate_copy_of_returned_then_consumed_owned_value(arg: __owned An
26
24
// CHECK: [[ARG_COPY:%[^,]+]] = copy_value [[ARG_LIFETIME]]
27
25
let x = consumeAndProduce ( arg)
28
26
// CHECK: [[X:%[^,]+]] = apply {{%[^,]+}}([[ARG_COPY]])
27
+ // CHECK: [[MOVE_X:%[^,]+]] = move_value [lexical] [[X]]
29
28
// no copy of 'x'
30
29
_ = consumeAndProduce ( x)
31
- // CHECK: [[RESULT:%[^,]+]] = apply {{%[^,]+}}([[X ]])
30
+ // CHECK: [[RESULT:%[^,]+]] = apply {{%[^,]+}}([[MOVE_X ]])
32
31
// CHECK: end_borrow [[ARG_LIFETIME]]
33
32
// release result
34
33
// release arg
You can’t perform that action at this time.
0 commit comments