[all-commits] [llvm/llvm-project] d1426c: [DAG] visitAnd - fold (and (ext (and V, c1)), c2) ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Jan 23 06:29:02 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1426cd4848b42c4a97fac3558404f9117100394
      https://github.com/llvm/llvm-project/commit/d1426cd4848b42c4a97fac3558404f9117100394
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-01-23 (Mon, 23 Jan 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AArch64/sve-fixed-length-fp-select.ll
    M llvm/test/CodeGen/AArch64/sve-fixed-length-int-select.ll
    M llvm/test/CodeGen/X86/combine-and.ll

  Log Message:
  -----------
  [DAG] visitAnd - fold (and (ext (and V, c1)), c2) -> (and (ext V), (and c1, (ext c2)))

Also, move the XformToShuffleWithZero and combineCarryDiamond folds later after some of the more basic canonicalizations/combines (such as this) have had a chance to occur

Fixes the v8i1-masks.ll regression from D127115




More information about the All-commits mailing list