[all-commits] [llvm/llvm-project] 823fc8: [InstSimplify] add tests for xor logic; NFC

RotateRight via All-commits all-commits at lists.llvm.org
Wed Nov 24 05:16:05 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 823fc8aa0681a861d1b74790ba77fd1f591c90b5
      https://github.com/llvm/llvm-project/commit/823fc8aa0681a861d1b74790ba77fd1f591c90b5
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-11-24 (Wed, 24 Nov 2021)

  Changed paths:
    M llvm/test/Transforms/InstSimplify/xor.ll

  Log Message:
  -----------
  [InstSimplify] add tests for xor logic; NFC


  Commit: b326c058146fbd5d89f7c8ce9fb932b3851200d7
      https://github.com/llvm/llvm-project/commit/b326c058146fbd5d89f7c8ce9fb932b3851200d7
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-11-24 (Wed, 24 Nov 2021)

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

  Log Message:
  -----------
  [InstSimplify] fold xor logic of 2 variables, part 2

(~a & b) ^ (a | b) --> a

This is the swapped and/or (Demorgan?) sibling fold for
the fold added with D114462 ( 892648b18a8c ).

This case is easier to specify because we are returning
a root value, not a 'not':
https://alive2.llvm.org/ce/z/SRzj4f


Compare: https://github.com/llvm/llvm-project/compare/e3d8ebe15856...b326c058146f


More information about the All-commits mailing list