Skip to content

Commit c0cad96

Browse files
committed
Add -allow-critical-edges=false to copyforward_ossa.sil
1 parent acc3398 commit c0cad96

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/SILOptimizer/copyforward_ossa.sil

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -enable-sil-verify-all %s -copy-forwarding -enable-copyforwarding -enable-destroyhoisting | %FileCheck %s
1+
// RUN: %target-sil-opt -enable-sil-verify-all %s -copy-forwarding -enable-copyforwarding -enable-destroyhoisting -allow-critical-edges=false | %FileCheck %s
22

33
// This is the ossa version of CopyForwarding tests
44
sil_stage raw
@@ -209,9 +209,12 @@ bb1: // Preds: bb0
209209
copy_addr %0 to [initialization] %5 : $*T // id: %6
210210
%7 = apply %4<T>(%5) : $@convention(thin) <τ_0_0> (@in τ_0_0) -> ()
211211
dealloc_stack %5 : $*T // id: %8
212-
br bb2 // id: %9
212+
br bb3 // id: %9
213213

214-
bb2: // Preds: bb0 bb1
214+
bb2:
215+
br bb3
216+
217+
bb3: // Preds: bb0 bb1
215218
destroy_addr %0 : $*T // id: %10
216219
%11 = tuple () // user: %12
217220
return %11 : $() // id: %12

0 commit comments

Comments
 (0)