foad accepted this revision. foad added a comment. This revision is now accepted and ready to land. LGTM, but maybe try Matt's idea about using LegalizerHelper functions as a follow up? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D102391/new/ https://reviews.llvm.org/D102391