-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[18 regression] Assertion `!NodePtr->isKnownSentinel()' failed at -O3 with aarch64 targets #79756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
@llvm/issue-subscribers-backend-aarch64 Author: Bernhard Rosenkraenzer (berolinux)
Building the attached test case (extracted from mesa 24.0.0-rc3) with clang 18-rc1 at `-O3` for aarch64 targets fails.
Non-aarch64 targets are ok, aarch64 targets are ok at -O2 and lower.
$ cat testcase.c
enum { a };
struct c {
char d[0];
};
enum { e = 8 };
struct {
int b[16385];
char ah[4];
struct c ak;
} f(), j;
typedef union {
struct {
int g;
};
int h;
} i;
i k;
int l, m;
unsigned n();
void o() {
unsigned aq = n();
k.h = 0;
if (l == &j)
aq = j.ak.d[aq];
else {
if (m == a)
aq = j.ah[aq];
if (m)
k.g = e;
}
f(k, aq);
} |
(Slightly) further reduced test case: struct {
int a1[16385];
char a2[1];
char a3[1];
} a(), b;
typedef union {
struct {
int c1;
};
int c2;
} c;
c d;
int e;
unsigned f();
void g() {
unsigned aq = f();
d.c2 = 0;
if (e == &b)
aq = b.a2[aq];
else {
if (e == 0)
aq = b.a3[aq];
if (e)
d.c1 = 1;
}
a(d, aq);
} |
/cherry-pick 915c3d9 |
llvmbot
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Jan 29, 2024
…ress" This reverts commit 32878c2 due to llvm#79756 and llvm#76202. (cherry picked from commit 915c3d9)
/pull-request #79814 |
tstellar
pushed a commit
that referenced
this issue
Jan 29, 2024
Merged: bab01ae |
|
candidate MR: #79951
|
berolinux
added a commit
to OpenMandrivaAssociation/llvm
that referenced
this issue
Feb 5, 2024
tstellar
pushed a commit
to tstellar/llvm-project
that referenced
this issue
Feb 14, 2024
…ress" This reverts commit 32878c2 due to llvm#79756 and llvm#76202. (cherry picked from commit 915c3d9)
tstellar
pushed a commit
to tstellar/llvm-project
that referenced
this issue
Feb 14, 2024
…ress" This reverts commit 32878c2 due to llvm#79756 and llvm#76202. (cherry picked from commit 915c3d9)
tstellar
pushed a commit
to tstellar/llvm-project
that referenced
this issue
Feb 14, 2024
…ress" This reverts commit 32878c2 due to llvm#79756 and llvm#76202. (cherry picked from commit 915c3d9)
tstellar
pushed a commit
to tstellar/llvm-project
that referenced
this issue
Feb 14, 2024
…ress" This reverts commit 32878c2 due to llvm#79756 and llvm#76202. (cherry picked from commit 915c3d9)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Building the attached test case (extracted from mesa 24.0.0-rc3) with clang 18-rc1 at
-O3
for aarch64 targets fails.Non-aarch64 targets are ok, aarch64 targets are ok at -O2 and lower.
testcase.c
https://godbolt.org/z/4dvqxc1rr
The text was updated successfully, but these errors were encountered: