[llvm-bugs] [Bug 52397] New: Infinite loop in compiler after 9020e22a876e15afd7b5d13ac3abf180b5cf9343

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 3 19:23:41 PDT 2021


            Bug ID: 52397
           Summary: Infinite loop in compiler after
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: douglas_yung at playstation.sony.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

We have an internal testcase that after
9020e22a876e15afd7b5d13ac3abf180b5cf9343 seems to be in an infinite loop in the
compiler when it is compiled using optimizations. Prior to this change,
compiling would take less than a second. After this commit, it seems stuck and
I killed the compiler after running for 5 minutes without it completing.

/* reduced.cpp */
typedef int sint;
typedef sint __attribute__((ext_vector_type(4))) sint4;
typedef sint __attribute__((ext_vector_type(6))) sint16;
sint16 test1_id413;
void test1() {
  sint16 id412(~test1_id413);
  sint16 id411(id412 >> 31);
  sint4 id410(id411.xyxz);
  volatile sint4 id409(id410);

To repro, use a compiler that includes 9020e22a876e15afd7b5d13ac3abf180b5cf9343
and compile with optimizations enabled (-O2).

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/20211104/1f1b0571/attachment.html>

More information about the llvm-bugs mailing list