[all-commits] [llvm/llvm-project] b46427: [InstSimplify] (~A & B) | ~(A | B) --> ~A with log...

David Green via All-commits all-commits at lists.llvm.org
Mon Nov 7 02:03:42 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b46427b9a2fa2587e9087ab7e2bbb2c5abbb30e3
      https://github.com/llvm/llvm-project/commit/b46427b9a2fa2587e9087ab7e2bbb2c5abbb30e3
  Author: David Green <david.green at arm.com>
  Date:   2022-11-07 (Mon, 07 Nov 2022)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstCombine/or.ll
    M llvm/test/Transforms/InstSimplify/or.ll

  Log Message:
  -----------
  [InstSimplify] (~A & B) | ~(A | B) --> ~A with logical and

According to https://alive2.llvm.org/ce/z/opsdrb, it is valid to convert
(~A & B) | ~(A | B) --> ~A even if the And is a Logical And. This came
up from the vector masking of predicated blocks.

Differential Revision: https://reviews.llvm.org/D137435




More information about the All-commits mailing list