[all-commits] [llvm/llvm-project] 61dc50: [DAG] Update foldSelectWithIdentityConstant to use...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Sep 30 09:47:16 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61dc5014acf1fc6723caf2d50c6f84b435f8f02f
      https://github.com/llvm/llvm-project/commit/61dc5014acf1fc6723caf2d50c6f84b435f8f02f
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-09-30 (Fri, 30 Sep 2022)

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

  Log Message:
  -----------
  [DAG] Update foldSelectWithIdentityConstant to use llvm::isNeutralConstant

D133866 added the llvm::isNeutralConstant helper to track neutral/passthrough constants

This patch updates foldSelectWithIdentityConstant to use the helper instead of maintaining its own opcode handling

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




More information about the All-commits mailing list