[all-commits] [llvm/llvm-project] 307307: [InstCombine] allow more commutative matches for l...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Fri Oct 21 10:32:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 307307456277f62f963e494de85b2b24f9c4afe2
      https://github.com/llvm/llvm-project/commit/307307456277f62f963e494de85b2b24f9c4afe2
  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] allow more commutative matches for logical-and to select fold

When the common value is part of either select condition,
this is safe to reduce. Otherwise, it is not poison-safe
(with the select form of the pattern):
https://alive2.llvm.org/ce/z/FxQTzB

This is another patch motivated by issue #58313.




More information about the All-commits mailing list