https://github.com/lukel97 approved this pull request. LGTM but I think this will need rebased after https://github.com/llvm/llvm-project/pull/218372 to take the DAG as an argument to the matcher https://github.com/llvm/llvm-project/pull/226216