When lowerswitch find out that the switch default branch is not
reachable it remove the old default and replace it with the most
popular block from the cases, but it forget to update the PHI
nodes in the default block.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Fixed another case when PHI nodes are not correctly updated.
This time it is when switch is replaced with a single branch.
Comment Actions
LGTM with nit
lib/Transforms/Utils/LowerSwitch.cpp | ||
---|---|---|
517 ↗ | (On Diff #152092) | i should be capitalized |