One of the transforms in LoopSimplifyCFG demands that the LCSSA form is
truly maintained for all values, tokens included, otherwise it may end up creating
a use that is not dominated by def (and Phi creation for tokens is impossible).
Detect this situation and prevent transform for it early.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM
I'm a little worried about the performance cost of the scan, but I guess this should be rare enough that it's unlikely to matter.