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

            Bug ID: 37133
           Summary: After r329657, error in backend: Cannot lower EFLAGS
                    copy that lives out of a basic block!
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: dimi...@andric.com
                CC: llvm-bugs@lists.llvm.org

After https://reviews.llvm.org/rL329657 ("[x86] Introduce a pass to begin more
systematically fixing PR36028 and similar issues"), which is part of a fix for
bug 36028, building libssh on i386-freebsd results in:

fatal error: error in backend: Cannot lower EFLAGS copy that lives out of a
basic block!
cc: error: clang frontend command failed with exit code 70 (use -v to see
invocation)

Minimized test case:

/* clang -cc1 -triple i386 -S -debug-info-kind=standalone -O1 krl-minimized.c
*/
int a, b;
unsigned long long c;
void e() {
  long long d;
  b = 33;
  d = a;
  if (c < a) {
    b = 32;
    d = c;
  }
  if (d)
    b = 2;
}

Note that the -debug-info-kind=standalone option is important, if that is left
out, the backend error does not occur!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to