Issue 74231
Summary Failed asserts since “[VPlan] Replace IR based truncateToMinimalBitwidths with VPlan version”
Labels backend:AArch64, regression
Assignees
Reporter mstorsjo
    Since  70535f5e609f747c28cfef699eefb84581b0aac0, the following snippet triggers failed asserts:
```c
short *a;
int b, c;
void d() {
  int e, f = c;
  for (; b; b++) {
    e = a[b];
    if (e) {
      if (e < 0)
        e = -f;
      a[b] = e;
    }
  }
}
```

Compiled like this:
```console
$ clang -target aarch64-linux-gnu -O2 -c test.c
clang: ../lib/Transforms/Vectorize/VPlanTransforms.cpp:964: static void llvm
::VPlanTransforms::truncateToMinimalBitwidths(llvm::VPlan&, const llvm::MapV
ector<llvm::Instruction*, long unsigned int>&, llvm::LLVMContext&): Assertio
n `MinBWs.size() == NumProcessedRecipes && "some entries in MinBWs haven't b
een processed"' failed.
```

CC @fhahn 

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to