1 ; RUN: opt -disable-output "-passes=print<scalar-evolution>" < %s 2>&1 | FileCheck %s
3 define i32 @branch_true(i32 %x, i32 %y) {
4 ; CHECK-LABEL: Classifying expressions for: @branch_true
6 br i1 true, label %add, label %merge
13 %v = phi i32 [ %sum, %add ], [ %x, %entry ]
14 ; CHECK: %v = phi i32 [ %sum, %add ], [ %x, %entry ]
15 ; CHECK-NEXT: --> (%x + %y) U: full-set S: full-set
19 define i32 @branch_false(i32 %x, i32 %y) {
20 ; CHECK-LABEL: Classifying expressions for: @branch_false
22 br i1 false, label %add, label %merge
29 %v = phi i32 [ %sum, %add ], [ %x, %entry ]
30 ; CHECK: %v = phi i32 [ %sum, %add ], [ %x, %entry ]
31 ; CHECK-NEXT: --> %x U: full-set S: full-set
35 define i32 @select_true(i32 %x, i32 %y) {
36 ; CHECK-LABEL: Classifying expressions for: @select_true
38 %v = select i1 true, i32 %x, i32 %y
39 ; CHECK: %v = select i1 true, i32 %x, i32 %y
40 ; CHECK-NEXT: --> %x U: full-set S: full-set
44 define i32 @select_false(i32 %x, i32 %y) {
45 ; CHECK-LABEL: Classifying expressions for: @select_false
47 %v = select i1 false, i32 %x, i32 %y
48 ; CHECK: %v = select i1 false, i32 %x, i32 %y
49 ; CHECK-NEXT: --> %y U: full-set S: full-set