https://github.com/lukel97 approved this pull request. LGTM. We should probably make all the masked pseudos inherit from RISCVMaskedPseudo at some point and mark the ones that shouldn't participate in the peepholes. https://github.com/llvm/llvm-project/pull/128376