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 11// 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
22
3- // REQUIRES: rdar87255563
4-
53// =============================================================================
64// = DECLARATIONS {{
75// =============================================================================
@@ -26,9 +24,10 @@ public func eliminate_copy_of_returned_then_consumed_owned_value(arg: __owned An
2624 // CHECK: [[ARG_COPY:%[^,]+]] = copy_value [[ARG_LIFETIME]]
2725 let x = consumeAndProduce ( arg)
2826 // CHECK: [[X:%[^,]+]] = apply {{%[^,]+}}([[ARG_COPY]])
27+ // CHECK: [[MOVE_X:%[^,]+]] = move_value [lexical] [[X]]
2928 // no copy of 'x'
3029 _ = consumeAndProduce ( x)
31- // CHECK: [[RESULT:%[^,]+]] = apply {{%[^,]+}}([[X ]])
30+ // CHECK: [[RESULT:%[^,]+]] = apply {{%[^,]+}}([[MOVE_X ]])
3231 // CHECK: end_borrow [[ARG_LIFETIME]]
3332 // release result
3433 // release arg
You can’t perform that action at this time.
0 commit comments