|
| 1 | +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py |
| 2 | +; RUN: opt -passes=slp-vectorizer -S %s | FileCheck %s |
| 3 | + |
| 4 | +target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32" |
| 5 | +target triple = "aarch64-unknown-linux-gnu" |
| 6 | + |
| 7 | +define void @foo(ptr %0) { |
| 8 | +vector.scevcheck: |
| 9 | + %scevgep = getelementptr i8, ptr %0, i64 4 |
| 10 | + %scevgep3 = getelementptr i8, ptr null, i64 4 |
| 11 | + %bound011 = icmp ult ptr %scevgep, null |
| 12 | + %found.conflict13 = and i1 %bound011, false |
| 13 | + %bound014 = icmp ult ptr %scevgep, null |
| 14 | + %found.conflict16 = and i1 %bound014, false |
| 15 | + %conflict.rdx17 = or i1 %found.conflict13, %found.conflict16 |
| 16 | + %bound018 = icmp ult ptr %scevgep, null |
| 17 | + %found.conflict20 = and i1 %bound018, false |
| 18 | + %conflict.rdx21 = or i1 %conflict.rdx17, %found.conflict20 |
| 19 | + %bound022 = icmp ult ptr %0, null |
| 20 | + %found.conflict24 = and i1 %bound022, false |
| 21 | + %conflict.rdx25 = or i1 %conflict.rdx21, %found.conflict24 |
| 22 | + %bound026 = icmp ult ptr %0, null |
| 23 | + %found.conflict28 = and i1 %bound026, false |
| 24 | + %conflict.rdx29 = or i1 %conflict.rdx25, %found.conflict28 |
| 25 | + %bound030 = icmp ult ptr %0, null |
| 26 | + %found.conflict32 = and i1 %bound030, false |
| 27 | + %conflict.rdx33 = or i1 %conflict.rdx29, %found.conflict32 |
| 28 | + %bound034 = icmp ult ptr %0, null |
| 29 | + %found.conflict36 = and i1 %bound034, false |
| 30 | + %conflict.rdx37 = or i1 %conflict.rdx33, %found.conflict36 |
| 31 | + %bound038 = icmp ult ptr %scevgep3, null |
| 32 | + %found.conflict40 = and i1 %bound038, false |
| 33 | + %conflict.rdx41 = or i1 %conflict.rdx37, %found.conflict40 |
| 34 | + br i1 %conflict.rdx41, label %.lr.ph, label %vector.ph |
| 35 | + |
| 36 | +vector.ph: ; preds = %vector.scevcheck |
| 37 | + ret void |
| 38 | + |
| 39 | +.lr.ph: ; preds = %vector.scevcheck |
| 40 | + ret void |
| 41 | +} |
0 commit comments