https://bugs.llvm.org/show_bug.cgi?id=50308

            Bug ID: 50308
           Summary: compile-time explosion at -O1 to -Os in Clang-12 and
                    Clang-trunk versions
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Hi all,

Clang-12 and Clang-trunk versions spend infinite time to compile the following
short valid C program (under -O1 to -Os).

$cat small.c
#include <stdint.h>
int ui_2, s_3, ui_5;
void fn1(int i_8) {
  uint32_t *ptr_14 = &ui_5;
  int16_t *ptr_16 = ui_2 -= i_8 ? (ui_5 <= *ptr_14) + (1 + s_3 ^ ui_2) :
*ptr_16;
}

Reproduced in Godbolt: https://godbolt.org/z/eYnxhM6Me

Thanks,
Haoxin

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to