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-09 13:53:13 +02:00
2024-02-22 14:32:15 -05:00
2023-06-28 21:02:29 +01:00
2024-01-24 15:25:29 +01:00
2023-10-27 20:22:54 +02:00
2024-01-24 15:25:29 +01:00
2024-03-09 13:53:13 +02:00
2024-03-05 08:18:51 -08:00
2024-02-16 10:51:42 -08:00
2023-07-28 21:26:50 +01:00
2024-01-24 15:25:29 +01:00
2023-07-28 21:26:50 +01:00
2023-07-28 21:26:50 +01:00
2023-07-28 21:26:50 +01:00
2024-03-09 13:53:13 +02:00
2024-02-22 14:32:15 -05:00
2023-12-01 11:23:57 -08:00
2023-10-02 07:49:03 -07:00
2024-02-05 11:57:34 +01:00
2023-07-28 21:26:50 +01:00
2023-10-26 12:07:37 -07:00
2023-09-08 10:00:46 -04:00
2023-09-08 10:00:46 -04:00
2023-11-14 11:12:52 -08:00
2024-02-22 14:32:15 -05:00
2024-01-11 16:47:38 +00:00
2024-01-11 16:47:38 +00:00
2024-02-22 14:32:15 -05:00
2024-01-11 16:47:38 +00:00
2023-09-08 10:00:46 -04:00
2023-09-15 12:09:45 -07:00