[all-commits] [llvm/llvm-project] a6a788: [DAG] foldBinOpIntoSelect - use FoldConstantArithm...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Mar 21 05:59:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a6a788bdfb39cbf66e7196a39785d848ce714338
      https://github.com/llvm/llvm-project/commit/a6a788bdfb39cbf66e7196a39785d848ce714338
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

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

  Log Message:
  -----------
  [DAG] foldBinOpIntoSelect - use FoldConstantArithmetic instead of getNode() + constant check.

This prevents unused nodes from being created if the constant check fails.

Noticed while triaging D127115 regressions




More information about the All-commits mailing list