arsenm wrote: > Sometimes, we do want to know if a leaf was referenced in the source DAG; this can be checked by calling RuleMatcher::hasOperand Probably should document this rule somewhere https://github.com/llvm/llvm-project/pull/120445