[all-commits] [llvm/llvm-project] 8d4d49: [DAG] Use SelectionDAG::FoldConstantArithmetic dir...

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d4d4988e43e8a164637c436437809c787a2b59f
      https://github.com/llvm/llvm-project/commit/8d4d4988e43e8a164637c436437809c787a2b59f
  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] 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