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: unassignedb...@nondot.org
Reporter: octopl...@yandex.com
CC: llvm-bugs@lists.llvm.org
trippels@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@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs