[all-commits] [llvm/llvm-project] 84e273: [InstCombine] Handle undefs in and of icmp eq zero...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Nov 11 10:07:23 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 84e273cced851075df46c78362ad3507a4de61d0
      https://github.com/llvm/llvm-project/commit/84e273cced851075df46c78362ad3507a4de61d0
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-11-11 (Thu, 11 Nov 2021)

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

  Log Message:
  -----------
  [InstCombine] Handle undefs in and of icmp eq zero fold

For the scalar/splat case, this fold is subsumed by
foldLogOpOfMaskedICmps(). However, the conjugated fold for "or"
also supports splats with undef. Make both code paths consistent
by using m_ZeroInt() for the "and" implementation as well.

https://alive2.llvm.org/ce/z/tN63cu
https://alive2.llvm.org/ce/z/ufB_Ue




More information about the All-commits mailing list