[all-commits] [llvm/llvm-project] 1cc02b: [SelectionDAG] Add helper function to check whethe...

Yeting Kuo via All-commits all-commits at lists.llvm.org
Thu Sep 29 20:29:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1cc02b05b752860637b3241fe944854bec2540c4
      https://github.com/llvm/llvm-project/commit/1cc02b05b752860637b3241fe944854bec2540c4
  Author: Yeting Kuo <yeting.kuo at sifive.com>
  Date:   2022-09-30 (Fri, 30 Sep 2022)

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

  Log Message:
  -----------
  [SelectionDAG] Add helper function to check whether a SDValue is neutral element. NFC.

Using this helper makes work about neutral elements more easier. Although I only
find one case now, I think it will have more chance to be used since so many
combine works are related to neutral elements.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D133866




More information about the All-commits mailing list