ABataev reclaimed this revision. ABataev added a comment. Michael, tried to implement it in InstCombiner, but we need cost analysis. Later passes are not suitable for this, because we need transformed code in InstCombiner. So, reopened it. https://reviews.llvm.org/D30686