[PATCH] D122152: [InstCombine] Fold two select patterns into and-or
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 27 08:14:37 PDT 2022
spatel added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/select-and-or.ll:557
+ %notc = xor i1 %c, true
+ %cond = and i1 %b, %notc
+ %r = select i1 %cond, i1 %a, i1 %b
----------------
This doesn't test the pattern that we want. You must use `@gen_i1` or some other instruction to force the 'not' to be operand 1.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122152/new/
https://reviews.llvm.org/D122152
More information about the llvm-commits
mailing list