[InstCombine] generalize reassociated Demorgan folds
authorSanjay Patel <spatel@rotateright.com>
Thu, 21 Oct 2021 14:37:16 +0000 (10:37 -0400)
committerSanjay Patel <spatel@rotateright.com>
Thu, 21 Oct 2021 14:39:29 +0000 (10:39 -0400)
commit3888de9507c78d3d77a4f565f30a3bf1b2fce690
treebd7f72f26f915a3e26edbd6087e6e374927a1a77
parent6b560a8e235b4f610cce6a2db8188f42ce65c5fb
[InstCombine] generalize reassociated Demorgan folds

This updates the recent D112108 / b92412fb286be26d
to handle the flipped logic ('or') sibling:
https://alive2.llvm.org/ce/z/Y2L6Ch
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/and-xor-or.ll