[all-commits] [llvm/llvm-project] 800d36: [DAG] Only perform the fold (A-B)+(C-D) --> (A+C)-...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun May 8 05:52:18 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 800d36cf32367a633bc24f668189365d63894f8c
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-05-08 (Sun, 08 May 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/combine-add.ll

  Log Message:
  [DAG] Only perform the fold (A-B)+(C-D) --> (A+C)-(B+D) when both inner subs have one use

Fixes #51381

More information about the All-commits mailing list