[all-commits] [llvm/llvm-project] 5dbfca: [InstCombine] Support logical ops in foldAndOrOfIC...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Dec 13 02:34:17 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5dbfca30c1a672cd0c5089df2b4fdd171436643a
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-12-13 (Tue, 13 Dec 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/test/Transforms/InstCombine/and-or-icmps.ll

  Log Message:
  [InstCombine] Support logical ops in foldAndOrOfICmpsWithConstEq() (NFC)

This is largely just for the sake of completeness. For logical ops,
this is mostly subsumed by foldSelectValueEquivalence() in a more
generic way. The only exception is vector support, as select
value equivalence folding currently doesn't support this for the
case where the replacement does not simplify.

More information about the All-commits mailing list