[all-commits] [llvm/llvm-project] 081a4e: [InstSimplify] add tests for poison-safe logical n...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Sun Jan 29 07:38:31 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 081a4e6712f465540cbf5e5895ffaf2d51777593
      https://github.com/llvm/llvm-project/commit/081a4e6712f465540cbf5e5895ffaf2d51777593
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-29 (Sun, 29 Jan 2023)

  Changed paths:
    M llvm/test/Transforms/InstSimplify/select-logical.ll

  Log Message:
  -----------
  [InstSimplify] add tests for poison-safe logical nand+or; NFC


  Commit: 20167e8483159536c13b2cda763047cbd6d7d62c
      https://github.com/llvm/llvm-project/commit/20167e8483159536c13b2cda763047cbd6d7d62c
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-29 (Sun, 29 Jan 2023)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/select-logical.ll

  Log Message:
  -----------
  [InstSimplify] !(X && Y) || X --> true (for poison-safe logical ops)

https://alive2.llvm.org/ce/z/xuvL46

This is the similar to the existing folds added with:
D138853 / f2973327496fc966c4e89597
7dbeb127eaf6
...but with the and/or swapped.


Compare: https://github.com/llvm/llvm-project/compare/6b30eb037792...20167e848315


More information about the All-commits mailing list