Open Quuxplusone opened 7 years ago
Attached file_33336.txt
(459 bytes, text/plain): Reproducing case
It looks like the problem happens after CFG simplification. We change the
control flow for the last block to:
lor.end: ; preds = %lor.rhs, %entry
%0 = phi i1 [ true, %entry ], [ %cmp, %lor.rhs ]
%. = select i1 %0, i1 true, i1 false
ret i1 %.
This in turn gets jump-threaded, which does not seem advantageous, since the
target in this case is simply a return.
Attached file_33336.txt
(671 bytes, text/plain): Minimal fix
file_33336.txt
(459 bytes, text/plain)file_33336.txt
(671 bytes, text/plain)