llvm-project
5903c6af - InstCombine: Fold shufflevector(select) and shufflevector(phi) (#113746)

Commit
1 year ago
InstCombine: Fold shufflevector(select) and shufflevector(phi) (#113746) - Transform `shufflevector(select(c, x, y), C)` to `select(c, shufflevector(x, C), shufflevector(y, C))` by re-using the `FoldOpIntoSelect` helper. - Transform `shufflevector(phi(x, y), C)` to `phi(shufflevector(x, C), shufflevector(y, C))` by re-using the `foldOpInotPhi` helper.
Author
Parents
Loading