mareko added a comment. Is this supposed to just insert v_readfirstlane for the descriptor? Can you mention that in the comment before calling legalizeOperands? Can you add a test case? Thanks. Repository: rL LLVM https://reviews.llvm.org/D42881