nhaehnle added a comment. The AMDGPU aspect of this looks reasonable to me. But yeah, it might be better to pass a LegalizerHelper through to this function. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D73761/new/ https://reviews.llvm.org/D73761