arsenm added a comment. Is the problem the rematerialization doesn't understand the liveness with op_sel? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D158059/new/ https://reviews.llvm.org/D158059