[llvm-bugs] [Bug 50308] New: compile-time explosion at -O1 to -Os in Clang-12 and Clang-trunk versions
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Tue May 11 20:57:08 PDT 2021
    
    
  
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: unassignedbugs at nondot.org
          Reporter: haoxintu at gmail.com
                CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210512/b494db67/attachment.html>
    
    
More information about the llvm-bugs
mailing list