mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Test] Fix AutoDiff/SILGen/throw.swift ordering issue
The test was failing in CI with Debug stdlib due to a different ordering of struct_extract operations. Changed to use CHECK-DAG for the two independent struct_extract operations that can appear in either order. rdar://165265446
This commit is contained in:
@@ -45,8 +45,8 @@ func catching(input: Float) -> Float {
|
||||
// CHECK: [[BB_NORMAL]](%[[PULLBACK:.*]] : $@callee_guaranteed (Float) -> Float)
|
||||
// Call pullback and accumulate adjoints
|
||||
// CHECK: %[[CALLEE_ADJ:.*]] = apply %[[PULLBACK]](%{{.*}}) : $@callee_guaranteed (Float) -> Float
|
||||
// CHECK: %[[FLOAT_ADJ:.*]] = struct_extract %[[ADJ]] : $Float, #Float._value
|
||||
// CHECK: %[[FLOAT_CALLEE_ADJ:.*]] = struct_extract %[[CALLEE_ADJ]] : $Float, #Float._value
|
||||
// CHECK-DAG: %[[FLOAT_ADJ:.*]] = struct_extract %[[ADJ]] : $Float, #Float._value
|
||||
// CHECK-DAG: %[[FLOAT_CALLEE_ADJ:.*]] = struct_extract %[[CALLEE_ADJ]] : $Float, #Float._value
|
||||
// CHECK: %[[NEW_FLOAT_ADJ:.*]] = builtin "fadd_FPIEEE32"(%[[FLOAT_CALLEE_ADJ]] : $Builtin.FPIEEE32, %[[FLOAT_ADJ]] : $Builtin.FPIEEE32) : $Builtin.FPIEEE32
|
||||
// CHECK: %[[NEW_ADJ:.*]] = struct $Float (%[[NEW_FLOAT_ADJ]] : $Builtin.FPIEEE32)
|
||||
// CHECK: br {{.*}}(%[[NEW_ADJ]] : $Float)
|
||||
|
||||
Reference in New Issue
Block a user