Tests for an upcoming simplification to merge the combination of phis in switch.
Related issue:
Switch not fully optimized
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/test/Transforms/SimplifyCFG/merge-phis-in-switch.ll | ||
---|---|---|
72 | Is the %unreachable necessary? |
llvm/test/Transforms/SimplifyCFG/merge-phis-in-switch.ll | ||
---|---|---|
72 | Not necessary for merging phis. But only with unreachable can we fold it into add i8 %arg, 1 through lookup table optimization. |
llvm/test/Transforms/SimplifyCFG/merge-phis-in-switch.ll | ||
---|---|---|
72 | Oh, you're right. |
Is the %unreachable necessary?
https://llvm.godbolt.org/z/cfj7Y8nnd