Issue |
91704
|
Summary |
performance issue of loop execution with llvm-19-init
|
Labels |
new issue
|
Assignees |
|
Reporter |
bi6c
|
```c
#include <stdint.h>
static uint32_t a;
int main (int argc, char* argv[])
{
for (a = 5; (a > 1); a -= 6)
{
}
}
```
Hello, we are using clang to compile the above code in Ubuntu 22.04.3 LTS.
We found that there is about 4 times difference of execution time when we compile it with llvmorg-13.0.0 and llvmorg-19-init. The execution time result is shown below.
```
~/compiler-builds/llvmorg-13.0.0_build/bin/clang test.c -o exec1
time ./exec1
real 0m0.390s
user 0m0.390s
sys 0m0.000s
~/compiler-builds/llvmorg-19-init_build/bin/clang test.c -o exec2
time ./exec2
real 0m2.085s
user 0m2.084s
sys 0m0.000s
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs