-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
clang hangs when compile a large c file. #25790
Comments
Is clang -S slow too or just clang -c? Can you attach the file? |
test case for it. after that, one can run |
The -S is slow too. gcc actually compile it within 3 seconds. |
reduced test
|
Most of time is spend on in the loop
|
This was fixed by the reporter back in r255198. Thanks for the patch! |
Extended Description
We have a c file like this
It contains a jmp statement for every 4K nop. There are over
4M instructions in the asm. gcc compile it within one second.
Clang hangs.
The command line is
clang iTLB_benchmark_function.c -c -o iTLB_benchmark_function.o
void iTLB_bechmark_function() {
asm (
"1:jmp 1f\n\t"
"nop\n\t"
"nop\n\t"
.
.
.
"1:nop\n\t"
);
}
The text was updated successfully, but these errors were encountered: