[all-commits] [llvm/llvm-project] 94944f: [InstSimplify] add tests for select-of-bool; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Fri Dec 30 06:17:42 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94944f800c1242e0375b4a658820a366445e7bc1
      https://github.com/llvm/llvm-project/commit/94944f800c1242e0375b4a658820a366445e7bc1
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-12-30 (Fri, 30 Dec 2022)

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

  Log Message:
  -----------
  [InstSimplify] add tests for select-of-bool; NFC


  Commit: 6c232db2ae933ad8f53cc39c8387fdceef7e8542
      https://github.com/llvm/llvm-project/commit/6c232db2ae933ad8f53cc39c8387fdceef7e8542
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-12-30 (Fri, 30 Dec 2022)

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

  Log Message:
  -----------
  [InstSimplify] fold selects where true/false arm is the same as condition

We managed to fold related patterns in issue #59704,
but we were missing these more basic folds:
https://alive2.llvm.org/ce/z/y6d7SN


Compare: https://github.com/llvm/llvm-project/compare/f4b925ee7078...6c232db2ae93


More information about the All-commits mailing list