1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=slp-vectorizer -mtriple=x86_64-unknown-linux < %s | FileCheck %s
6 ; CHECK-NEXT: br i1 false, label [[PH:%.*]], label [[EXIT:%.*]]
8 ; CHECK-NEXT: [[TMP0:%.*]] = call i8 @llvm.vector.reduce.and.v8i8(<8 x i8> zeroinitializer)
9 ; CHECK-NEXT: [[OP_RDX:%.*]] = and i8 0, [[TMP0]]
10 ; CHECK-NEXT: [[OP_RDX1:%.*]] = and i8 [[OP_RDX]], 0
11 ; CHECK-NEXT: br label [[EXIT]]
13 ; CHECK-NEXT: [[PHI:%.*]] = phi i8 [ [[OP_RDX1]], [[PH]] ], [ 0, [[BB:%.*]] ]
14 ; CHECK-NEXT: ret void
17 br i1 false, label %ph, label %exit
21 %add2 = add i8 %add1, 0
22 %add3 = add i8 %add1, 0
23 %add4 = add i8 %add1, 0
24 %add5 = add i8 %add1, 0
25 %add6 = add i8 %add1, 0
26 %add7 = add i8 %add1, 0
27 %add8 = add i8 %add1, 0
29 %add10 = add i8 0, %add9
30 %0 = and i8 %add10, %add3
43 %13 = and i8 %12, %add7
44 %14 = and i8 %13, %add8
49 %and = and i8 %18, %add1
53 %phi = phi i8 [ %and, %ph ], [ 0, %bb ]