[all-commits] [llvm/llvm-project] 95cdd6: [DAG] visitADDLike - use SelectionDAG::FoldConstan...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat May 14 10:40:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95cdd63b8702e9c7a85d31e72e8ff386ab7b59ec
      https://github.com/llvm/llvm-project/commit/95cdd63b8702e9c7a85d31e72e8ff386ab7b59ec
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-05-14 (Sat, 14 May 2022)

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

  Log Message:
  -----------
  [DAG] visitADDLike - use SelectionDAG::FoldConstantArithmetic directly to match constant operands

SelectionDAG::FoldConstantArithmetic determines if operands are foldable constants, so we don't need to bother with isConstantOrConstantVector / Opaque tests before calling it directly.




More information about the All-commits mailing list