We can allow sinking if the single user block has only one unique predecessor, regardless of the number of edges. Note that a switch statement with multiple cases can have the same destination.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
In general, I don't like the fact we have sinking logic in InstCombine at all, but this is a perfectly reasonable extension of the existing design.