1 ; RUN: opt -sink -S < %s | FileCheck %s
3 ; Verify that IR sinking does not move convergent operations to
4 ; blocks that are not control equivalent.
6 ; CHECK: define i32 @foo
8 ; CHECK-NEXT: call i32 @bar
9 ; CHECK-NEXT: br i1 %arg
11 define i32 @foo(i1 %arg) {
13 %c = call i32 @bar() readonly convergent
14 br i1 %arg, label %then, label %end
23 declare i32 @bar() readonly convergent