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

            Bug ID: 37203
           Summary: PHI node has multiple entries for the same basic block
                    with different incoming values!
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: mikael.hol...@ericsson.com
                CC: llvm-bugs@lists.llvm.org

Created attachment 20209
  --> https://bugs.llvm.org/attachment.cgi?id=20209&action=edit
reproducer

Reproduce with:
 opt -S -sroa tr15912.ll -o -</pre>

which gives

 PHI node has multiple entries for the same basic block with different incoming
values!
   %g.0.sroa.speculated = phi i16 [ %g.0.sroa.speculate.load.cleanup, %cleanup
], [ %g.0.sroa.speculate.load.cleanup1, %cleanup ], [ undef, %if.else ]
 label %cleanup
   %g.0.sroa.speculate.load.cleanup1 = load i16, i16* @a, align 1
   %g.0.sroa.speculate.load.cleanup = load i16, i16* @a, align 1
 LLVM ERROR: 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

Reply via email to