1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
2 ; RUN: opt -passes=slp-vectorizer -S < %s | FileCheck %s
4 define i1 @test(i32 %inc) {
5 ; CHECK-LABEL: define i1 @test(
6 ; CHECK-SAME: i32 [[INC:%.*]]) {
7 ; CHECK-NEXT: [[CMP:%.*]] = icmp ult i32 [[INC]], 3
8 ; CHECK-NEXT: [[OP_RDX:%.*]] = select i1 [[CMP]], i1 true, i1 poison
9 ; CHECK-NEXT: ret i1 [[OP_RDX]]
11 %cmp = icmp ult i32 %inc, 3
12 %sel1 = select i1 %cmp, i1 true, i1 poison
13 %sel2 = select i1 %sel1, i1 true, i1 poison
14 %sel3 = select i1 %sel2, i1 true, i1 poison