[llvm-bugs] [Bug 32469] New: Labels as Values broken on trunk

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 30 03:39:54 PDT 2017


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

            Bug ID: 32469
           Summary: Labels as Values broken on trunk
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: octoploid at yandex.com
                CC: llvm-bugs at lists.llvm.org

trippels at gcc2-power8 ~ % cat test.i
int a;
void fn1() {
  int b=1;
  void *c[] = {&&L_OP_CCLASS_MB, &&L_OP_CONDITION};
  if (a)
    while (b--)
    L_OP_CCLASS_MB:;
  L_OP_CONDITION:
    goto * 0;
}

trippels at gcc2-power8 ~ % clang -c -O2 test.i
Instruction does not dominate all uses!
  %b.1.ph = phi i32 [ 1, %entry ], [ %dec, %.split ]
  %merge = phi i32 [ %b.1.ph, %while.cond ], [ %b.0.clone, %while.cond.clone ]
PHINode should have one entry for each predecessor of its parent basic block!
  %b.0.clone = phi i32 [ 1, %entry ], [ %dec, %.split ]
fatal error: error in backend: Broken function found, compilation aborted!

-- 
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/20170330/2dd070ec/attachment.html>


More information about the llvm-bugs mailing list