[all-commits] [llvm/llvm-project] 5a53fe: [InstCombine] add tests for logical selects; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Fri Oct 21 06:03:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a53fe846bc29e8a53250fadac5ea810334fb836
      https://github.com/llvm/llvm-project/commit/5a53fe846bc29e8a53250fadac5ea810334fb836
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/select-safe-transforms.ll

  Log Message:
  -----------
  [InstCombine] add tests for logical selects; NFC


  Commit: bf75e937bbc3d59225474e4a3ca3517723ac75dc
      https://github.com/llvm/llvm-project/commit/bf75e937bbc3d59225474e4a3ca3517723ac75dc
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select-safe-transforms.ll

  Log Message:
  -----------
  [InstCombine] match logical and/or more generally in fold to select

This allows the regular bitwise logic opcodes in addition to the
poison-safe select variants:
https://alive2.llvm.org/ce/z/8xB9gy

Handling commuted variants safely is likely trickier, so that's
left to another patch.


Compare: https://github.com/llvm/llvm-project/compare/1e4f82c2578c...bf75e937bbc3


More information about the All-commits mailing list