Issue 76986
Summary Assertion `State.VF.isVector() && "Not vectorizing?"' failed.
Labels new issue
Assignees
Reporter TatyanaDoubts
    Run opt with -passes=loop-vectorize

https://godbolt.org/z/xdrTfEddx

Test.ll
```
; ModuleID = './reduced.ll'
source_filename = "./reduced.ll"
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-ni:1-p2:32:8:8:32-ni:2"
target triple = "aarch64-none-linux-gnu"

define void @wombat(i16 %arg) gc "statepoint-example" {
bb:
  br label %bb1

bb1: ; preds = %bb1, %bb
  %phi = phi i64 [ 0, %bb ], [ %add, %bb1 ]
  %sext = sext i8 0 to i32
  %add = add i64 %phi, 1
  %trunc = trunc i32 %sext to i16
  %sdiv = sdiv i16 0, %arg
 %sext2 = sext i16 %trunc to i32
  %sext3 = sext i32 %sext2 to i64
 %icmp = icmp ult i64 %phi, 14933
  br i1 %icmp, label %bb1, label %bb4

bb4:                                              ; preds = %bb1
  %phi5 = phi i64 [ %sext3, %bb1 ]
  ret void
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to