[InstCombine] allow more matches for logical-ands --> select
authorSanjay Patel <spatel@rotateright.com>
Sat, 22 Oct 2022 11:55:19 +0000 (07:55 -0400)
committerSanjay Patel <spatel@rotateright.com>
Sat, 22 Oct 2022 12:15:50 +0000 (08:15 -0400)
commite1bd759ea56710a9e7b9a4068af0ee95f1ad217e
tree818ed628f2f87dada0b28c9de8462c36d67b7db4
parentf010b1eae58667b3fcb40c9498974a06ba85d894
[InstCombine] allow more matches for logical-ands --> select

This allows patterns with real 'and' instructions because
those are safe to transform:
https://alive2.llvm.org/ce/z/7-U_Ak
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/select-safe-transforms.ll