[all-commits] [llvm/llvm-project] 8a0c5d: [DAG] Replace llvm::isNeutralConstant with Selecti...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue May 5 05:01:00 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a0c5d3f43b27c8e2895c6106d6b551d626979fd
      https://github.com/llvm/llvm-project/commit/8a0c5d3f43b27c8e2895c6106d6b551d626979fd
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2026-05-05 (Tue, 05 May 2026)

  Changed paths:
    M llvm/include/llvm/CodeGen/SelectionDAG.h
    M llvm/include/llvm/CodeGen/SelectionDAGNodes.h
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp

  Log Message:
  -----------
  [DAG] Replace llvm::isNeutralConstant with SelectionDAG::isIdentityElement (#195827)

Initial step towards generalising this - move to SelectionDAG like other
valuetracker helpers, add DemandedElts/Depth controls, etc.

We can add target node handling when it becomes necessary.

Renamed to "IdentityElement" to match llvm naming conventions.



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