[all-commits] [llvm/llvm-project] f61de3: [NFC][PatternMatching] Promote `m_LogicalOp` match...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Sun Dec 18 13:24:48 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f61de3c1aa8fa4a5fdccbf213e5dca507073d431
      https://github.com/llvm/llvm-project/commit/f61de3c1aa8fa4a5fdccbf213e5dca507073d431
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2022-12-19 (Mon, 19 Dec 2022)

  Changed paths:
    M llvm/include/llvm/IR/PatternMatch.h
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp

  Log Message:
  -----------
  [NFC][PatternMatching] Promote `m_LogicalOp` matchers into `PatternMatch.h`


  Commit: 4def99e642806f3f8e94cb2aa9356d63cd233dd0
      https://github.com/llvm/llvm-project/commit/4def99e642806f3f8e94cb2aa9356d63cd233dd0
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2022-12-19 (Mon, 19 Dec 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/test/Transforms/CallSiteSplitting/callsite-split.ll
    M llvm/test/Transforms/InstCombine/assume-icmp-null-select.ll
    M llvm/test/Transforms/InstCombine/dont-distribute-phi.ll
    M llvm/test/Transforms/LoopVectorize/induction.ll
    M llvm/test/Transforms/PhaseOrdering/simplifycfg-options.ll
    M llvm/test/Transforms/SimplifyCFG/merge-cond-stores.ll

  Log Message:
  -----------
  [InstCombine] Try to fold `not` into `cmp` iff other users of `cmp` are freely invertible

There is still some such patterns that require collaboration
of folds to handle,that we don't currently do.


Compare: https://github.com/llvm/llvm-project/compare/4d48ccfc88ca...4def99e64280


More information about the All-commits mailing list