1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=slp-vectorizer -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
7 ; CHECK-NEXT: br i1 false, label [[IF_ELSE:%.*]], label [[IF_THEN:%.*]]
9 ; CHECK-NEXT: [[CMP:%.*]] = icmp slt i32 1, 0
10 ; CHECK-NEXT: [[SPEC_SELECT:%.*]] = select i1 [[CMP]], i32 1, i32 0
11 ; CHECK-NEXT: [[TMP0:%.*]] = call i32 @llvm.smin.i32(i32 [[SPEC_SELECT]], i32 1)
12 ; CHECK-NEXT: br label [[IF_END20:%.*]]
14 ; CHECK-NEXT: br label [[IF_END20]]
16 ; CHECK-NEXT: [[TMP1:%.*]] = phi i32 [ undef, [[IF_ELSE]] ], [ [[TMP0]], [[IF_THEN]] ]
17 ; CHECK-NEXT: ret void
20 br i1 false, label %if.else, label %if.then
23 %cmp = icmp slt i32 1, 0
24 %spec.select = select i1 %cmp, i32 1, i32 0
25 %0 = call i32 @llvm.smin.i32(i32 %spec.select, i32 1)
32 %1 = phi i32 [ undef, %if.else ], [ %0, %if.then ]
36 declare i32 @llvm.smin.i32(i32, i32)