[all-commits] [llvm/llvm-project] 0c7380: [DAG] Add or(and(x, c1), and(or(x, y), c2)) tests

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun Jul 17 10:52:12 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c7380ebbd657cd10c265ae2944e859268312a11
      https://github.com/llvm/llvm-project/commit/0c7380ebbd657cd10c265ae2944e859268312a11
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-07-17 (Sun, 17 Jul 2022)

  Changed paths:
    M llvm/test/CodeGen/X86/combine-or.ll

  Log Message:
  -----------
  [DAG] Add or(and(x,c1),and(or(x,y),c2)) tests

Tests for the fold suggested in D77804


  Commit: 53b90dd372c440e26116ff66fd4a514c0055ebb1
      https://github.com/llvm/llvm-project/commit/53b90dd372c440e26116ff66fd4a514c0055ebb1
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-07-17 (Sun, 17 Jul 2022)

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

  Log Message:
  -----------
  [DAG] Fold (or (and X, C1), (and (or X, Y), C2)) -> (or (and X, C1|C2), (and Y, C2))

Pulled out of D77804

Alive2: https://alive2.llvm.org/ce/z/g61VRe


Compare: https://github.com/llvm/llvm-project/compare/d2f21f98a955...53b90dd372c4


More information about the All-commits mailing list