We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Testcase:
#include <stdlib.h>
void t() { throw 0; } void (tt)() = t; void f(int__restrict a, int x, bool y) { for (int i = 0; i < x; ++i) { *a += 1; if (y) tt(); } } void (ff)(int__restrict,int,bool) = f; int main() { int a = 0; try { ff(&a, 10, true); } catch (...) { if (a != 1) abort(); } }
Runs to completion with clang -O0, aborts with clang -O2.
The problem is incomplete safety checks in LICM.
(Artificial testcase.)
The text was updated successfully, but these errors were encountered:
http://reviews.llvm.org/D20944 .
Sorry, something went wrong.
r271858.
No branches or pull requests
Extended Description
Testcase:
#include <stdlib.h>
void t() { throw 0; }
void (tt)() = t;
void f(int__restrict a, int x, bool y) {
for (int i = 0; i < x; ++i) {
*a += 1;
if (y) tt();
}
}
void (ff)(int__restrict,int,bool) = f;
int main() {
int a = 0;
try {
ff(&a, 10, true);
} catch (...) {
if (a != 1) abort();
}
}
Runs to completion with clang -O0, aborts with clang -O2.
The problem is incomplete safety checks in LICM.
(Artificial testcase.)
The text was updated successfully, but these errors were encountered: