Issue 164164
Summary [SLP] Assertion `all_of(Bundles, [](const ScheduleBundle *Bundle) { return Bundle->isScheduled(); }) && "must be scheduled at this point"' failed.
Labels vectorizers, llvm:SLPVectorizer, crash, crash-on-valid
Assignees
Reporter fhahn
    The following input triggers an assertion with `-p slp-vectorizer` on current `main`:
https://llvm.godbolt.org/z/xsTTooc64

```
target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx15.0.0"

define void @crash(ptr %output) #0 {
entry:
  %arrayidx.2.i = getelementptr i8, ptr %output, i64 8
  %0 = load i32, ptr %output, align 4
  %arrayidx.3.i = getelementptr i8, ptr %output, i64 12
  %1 = load i32, ptr %arrayidx.3.i, align 4
  %xor7 = xor i32 -1, %0
  %or.i = tail call i32 @llvm.fshl.i32(i32 %xor7, i32 0, i32 2)
 %or.i11 = tail call i32 @llvm.fshl.i32(i32 %1, i32 %1, i32 2)
  store i32 %or.i, ptr %arrayidx.2.i, align 4
  store i32 %or.i11, ptr %arrayidx.3.i, align 4
  ret void
}

declare i32 @llvm.fshl.i32(i32, i32, i32) #1

attributes #0 = { "target-cpu"="skylake-avx512" }
``
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to