File: phi-node-reshuffled-part.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (54 lines) | stat: -rw-r--r-- 2,465 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
; RUN: opt -S --passes=slp-vectorizer -mtriple=x86_64-unknown-linux-gnu  < %s | FileCheck %s

define void @test() {
; CHECK-LABEL: define void @test() {
; CHECK-NEXT:  [[ENTRY:.*]]:
; CHECK-NEXT:    br label %[[CONT608:.*]]
; CHECK:       [[CONT221_THREAD781:.*]]:
; CHECK-NEXT:    br label %[[CONT608]]
; CHECK:       [[CONT608]]:
; CHECK-NEXT:    [[TMP0:%.*]] = phi <2 x i1> [ poison, %[[CONT221_THREAD781]] ], [ zeroinitializer, %[[ENTRY]] ]
; CHECK-NEXT:    [[TMP1:%.*]] = shufflevector <2 x i1> [[TMP0]], <2 x i1> poison, <4 x i32> <i32 0, i32 0, i32 0, i32 1>
; CHECK-NEXT:    [[TMP3:%.*]] = select <4 x i1> [[TMP1]], <4 x i1> zeroinitializer, <4 x i1> zeroinitializer
; CHECK-NEXT:    [[TMP4:%.*]] = call <8 x i1> @llvm.vector.insert.v8i1.v4i1(<8 x i1> <i1 poison, i1 poison, i1 poison, i1 poison, i1 false, i1 false, i1 false, i1 false>, <4 x i1> [[TMP3]], i64 0)
; CHECK-NEXT:    [[TMP5:%.*]] = select <8 x i1> [[TMP4]], <8 x i64> zeroinitializer, <8 x i64> zeroinitializer
; CHECK-NEXT:    [[TMP6:%.*]] = call i64 @llvm.vector.reduce.or.v8i64(<8 x i64> [[TMP5]])
; CHECK-NEXT:    [[OP_RDX:%.*]] = or i64 [[TMP6]], 0
; CHECK-NEXT:    store i64 [[OP_RDX]], ptr null, align 8
; CHECK-NEXT:    ret void
;
entry:
  br label %cont608

cont221.thread781:
  %cmp215784 = icmp eq i32 0, 0
  br label %cont608

cont608:
  %0 = phi i1 [ %cmp215784, %cont221.thread781 ], [ false, %entry ]
  %1 = phi i1 [ false, %cont221.thread781 ], [ false, %entry ]
  %bf.shl242 = select i1 false, i64 0, i64 0
  %bf.shl260 = select i1 false, i64 0, i64 0
  %bf.set262 = or i64 %bf.shl242, %bf.shl260
  %2 = select i1 %1, i1 false, i1 false
  %bf.shl292 = select i1 %2, i64 0, i64 0
  %bf.set305 = or i64 %bf.shl292, 0
  %bf.set316 = or i64 %bf.set305, %bf.set262
  %bf.shl362 = select i1 false, i64 0, i64 0
  %bf.shl380 = select i1 false, i64 0, i64 0
  %3 = select i1 %0, i1 false, i1 false
  %bf.shl416 = select i1 %3, i64 0, i64 0
  %4 = select i1 %0, i1 false, i1 false
  %bf.shl434 = select i1 %4, i64 0, i64 0
  %bf.set418 = or i64 %bf.shl416, %bf.shl434
  %5 = select i1 %0, i1 false, i1 false
  %bf.shl560 = select i1 %5, i64 0, i64 0
  %bf.set584 = or i64 %bf.shl560, 0
  %bf1 = or i64 %bf.set316, %bf.shl362
  %bf2 = or i64 %bf1, %bf.shl380
  %bf3 = or i64 %bf.set418, %bf2
  %bf.clear612 = or i64 %bf.set584, %bf3
  store i64 %bf.clear612, ptr null, align 8
  ret void
}