Issue 91433
Summary Compiler gets into an infinite loop after commit 8e7618aa2165
Labels new issue
Assignees
Reporter dyung
    Recently a bunch of our internal tests started to time out when being built and I was able to bisect it back to 8e7618aa2165. Consider the following code:
```c++
typedef double __attribute__((ext_vector_type(4))) double4;
#define double4_zwxw(__A) (__A.zwxw)
void test52() { double4 id10996 double4_zwxw(id10996); }
```
If compiled with a compiler that does not include 8e7618aa2165, the compilation completes in under a second:
```
$ time ~/src/upstream/0a0cac6dbd0ef67eb473f85a968bbf4ebea5220d-linux/bin/clang -c -mavx repro.cpp -o repro.o

real    0m0.044s
user    0m0.012s
sys 0m0.032s
```
However, if we build with a compiler that includes 8e7618aa2165, the compiler seems to get stuck in an infinite loop and is still building after 10 minutes:
```
$ timeout 600 ~/src/upstream/8e7618aa2165-linux/bin/clang -c -mavx repro.cpp -o repro.o
$ echo $?
124
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to