[all-commits] [llvm/llvm-project] 072675: [DAG] foldSelectOfBinops - correctly handle select...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Oct 9 03:09:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 072675f14e986c1ecf6275a03c44fca145866d05
      https://github.com/llvm/llvm-project/commit/072675f14e986c1ecf6275a03c44fca145866d05
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-10-09 (Mon, 09 Oct 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    A llvm/test/CodeGen/X86/pr68539.ll

  Log Message:
  -----------
  [DAG] foldSelectOfBinops - correctly handle select of binops where ResNo != 0

Correctly handle cases where the select(cond, binop(x, y), binop(z, y)) --> binop(select(cond, x, z), y) fold is selecting ResNo != 0 results (UADDO flags etc.)

Fixes #68539




More information about the All-commits mailing list