Martin Storsjö
5b5c21d772
Revert "[SLP]Improve minbitwidth analysis."
This reverts commit 2bd369b48dbf0bc3128becb7ef8f8a1b82514b87.
That commit triggered failed assertions:
$ cat repro.c
short *a;
int b;
void h() {
short *c = a;
b = 0;
for (; b < 4; b++) {
unsigned d = a[b] + a[b + 4 * 2], e = a[b] - a[b + 4 * 2],
f = (a[b + 4] >> 1) - a[b + 4 * 3],
g = a[b + 4] + (a[b + 4 * 3] >> 1);
c[b] = g;
c[b + 4] = e + f;
c[b + 4 * 2] = e - f;
c[b + 4 * 3] = d - g;
}
}
$ clang -target aarch64-linux-gnu -c -O2 repro.c
clang: ../lib/Transforms/Vectorize/SLPVectorizer.cpp:12503: llvm::Value* llvm::slpvectorizer::BoUpSLP::vectorizeTree(llvm::slpvectorizer::BoUpSLP::TreeEntry*, bool): Assertion `(MinBWs.contains(getOperandEntry(E, 0)) || MinBWs.contains(getOperandEntry(E, 1))) && "Expected item in MinBWs."' failed.
2024-03-09 13:53:13 +02:00
..
2024-03-01 12:48:45 -05:00
2023-12-18 22:04:22 -08:00
2023-06-14 09:49:58 -07:00
2023-12-18 22:04:22 -08:00
2023-06-29 18:42:24 +01:00
2023-06-14 09:49:58 -07:00
2023-06-14 09:49:58 -07:00
2023-09-29 07:48:02 -07:00
2023-06-29 13:55:22 +01:00
2024-03-09 13:53:13 +02:00
2024-01-10 10:39:34 -05:00
2023-07-19 11:53:49 -07:00
2024-03-05 09:38:25 -05:00
2024-02-01 09:09:02 -08:00
2024-02-12 09:43:54 -08:00
2024-02-12 09:43:54 -08:00
2024-02-01 09:09:02 -08:00