[all-commits] [llvm/llvm-project] 5f094a: [DAGCombiner][NFC] Use `m_Value(N, Pattern)` overl...

Pengcheng Wang via All-commits all-commits at lists.llvm.org
Thu Jul 2 04:26:39 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f094a2734d7be1fa280b1ab15637847b728851d
      https://github.com/llvm/llvm-project/commit/5f094a2734d7be1fa280b1ab15637847b728851d
  Author: Pengcheng Wang <wangpengcheng.pp at bytedance.com>
  Date:   2026-07-02 (Thu, 02 Jul 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  -----------
  [DAGCombiner][NFC] Use `m_Value(N, Pattern)` overload to simplify matching (#207154)

Replace the `m_AllOf(Pattern, m_Value(N))` idiom (match-and-bind) with
the
`m_Value(N, Pattern)` overload throughout `DAGCombiner`, and fold
standalone
negative `sd_match` checks into the pattern via `m_Unless` where
applicable.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list