https://bugs.llvm.org/show_bug.cgi?id=47945
Bug ID: 47945
Summary: opt -sroa causes "PHI node has multiple entries for
the same basic block with different incoming values!"
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedb...@nondot.org
Reporter: mikael.hol...@ericsson.com
CC: llvm-bugs@lists.llvm.org
Created attachment 24093
--> https://bugs.llvm.org/attachment.cgi?id=24093&action=edit
bbi-30982_2.ll reproducer
Reproduce with:
opt -S -o - bbi-30982_2.ll -sroa
Result:
PHI node has multiple entries for the same basic block with different incoming
values!
%.pre-phi1.sroa.phi = phi i16* [ %s1.i.sroa.1.sroa.0.0.gep.sroa_cast2,
%land.lhs.true.i ], [ %s1.i.sroa.1.sroa.0.0.gep1.sroa_cast3, %land.lhs.true.i ]
label %land.lhs.true.i
%s1.i.sroa.1.sroa.0.0.gep1.sroa_cast3 = bitcast i8* %s1.i.sroa.1.sroa.0 to
i16*
%s1.i.sroa.1.sroa.0.0.gep.sroa_cast2 = bitcast i8* %s1.i.sroa.1.sroa.0 to
i16*
in function h
LLVM ERROR: Broken function found, compilation aborted!
Starts happening with 745c6c8458ba:
Process gep (phi ptr1, ptr2) in SROA
Differential Revision: https://reviews.llvm.org/D79218
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs