[llvm-bugs] [Bug 41116] New: After r322972, Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), function UpdateCPSRUse, file lib/Target/ARM/Thumb2SizeReduction.cpp, line 965.

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 17 14:43:41 PDT 2019


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

            Bug ID: 41116
           Summary: After r322972, Assertion failed: (LiveCPSR && "CPSR
                    liveness tracking is wrong!"), function UpdateCPSRUse,
                    file lib/Target/ARM/Thumb2SizeReduction.cpp, line 965.
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dimitry at andric.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

As described in https://bugs.freebsd.org/236568, compiling the FreeBSD
devel/xwpe port for armv7 asserts with:

Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), function
UpdateCPSRUse, file lib/Target/ARM/Thumb2SizeReduction.cpp, line 995.

Bisection shows this started occurring after https://reviews.llvm.org/rL322972
("[ARM] Fix perf regression in compare optimization").

Minimized test case:

/* clang -cc1 -triple armv7-- -S -O1 -fno-signed-char we_menue-min.c */
int a;
typedef struct {
  int b;
} c;
char d;
void e() {
  c *f = (c *)1;
  int g;
  if (d & 1)
    f = 0;
  if (d & 2)
    f[1].b = d & 1;
  a = 0;
}

-- 
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/20190317/ed42ceb5/attachment.html>


More information about the llvm-bugs mailing list