[all-commits] [llvm/llvm-project] de885f: [InstCombine] Add (icmp ne A, 0) | (icmp ne B, 0) ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Oct 19 07:43:15 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: de885f1b2abe7fd26c22bbb551d1dc86a87e6dff
      https://github.com/llvm/llvm-project/commit/de885f1b2abe7fd26c22bbb551d1dc86a87e6dff
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-10-19 (Mon, 19 Oct 2020)

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

  Log Message:
  -----------
  [InstCombine] Add (icmp ne A, 0) | (icmp ne B, 0) --> (icmp ne (A|B), 0) vector support

Scalar cases were already being handled by foldLogOpOfMaskedICmps (so this was dead code), but refactoring to support non-uniform vectors will take some time, so tweak this fold in the meantime.




More information about the All-commits mailing list