Open Quuxplusone opened 5 years ago
Attached small.bc
(3580 bytes, application/octet-stream): .bc file of the source code
Looks like a bug in the scalarizer pass - that's the first place that I see a
block with a misplaced phi:
LeafBlock1: ; preds = %for.end7,
%for.body5
%cleanup.dest.lcssa = phi i32 [ 2, %for.body5 ], [ 2, %for.end7 ]
%h.sroa.4.2 = phi <2 x i64> [ %h.sroa.4.16.vec.insert, %for.body5 ], [ %h.sroa.4.16.vec.insert, %for.end7 ]
%h.sroa.4.2.i0 = extractelement <2 x i64> %h.sroa.4.2, i32 0
%h.sroa.4.2.i1 = extractelement <2 x i64> %h.sroa.4.2, i32 1
%cleanup.dest.slot.0 = phi i32 [ 2, %for.body5 ], [ 2, %for.end7 ]
br label %j.for.end11_crit_edge
PHI nodes not grouped at top of basic block!
%cleanup.dest.slot.0 = phi i32 [ 2, %for.body5 ], [ 2, %for.end7 ]
Attached tc_bb2isntsucc.ll
(2218 bytes, text/plain): SystemZ reduced test case
small.bc
(3580 bytes, application/octet-stream)tc_bb2isntsucc.ll
(2218 bytes, text/plain)