[all-commits] [llvm/llvm-project] 55991b: [InstCombine] foldAndOrOfICmpsOfAndWithPow2 - add ...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Fri Oct 16 02:44:57 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 55991b44b7f96a0aaa33ac53fc229302ca8d5d02
https://github.com/llvm/llvm-project/commit/55991b44b7f96a0aaa33ac53fc229302ca8d5d02
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2020-10-16 (Fri, 16 Oct 2020)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
M llvm/test/Transforms/InstCombine/onehot_merge.ll
Log Message:
-----------
[InstCombine] foldAndOrOfICmpsOfAndWithPow2 - add vector support
Support vector cases for folding:
(iszero(A & K1) | iszero(A & K2)) -> (A & (K1 | K2)) != (K1 | K2)
(!iszero(A & K1) & !iszero(A & K2)) -> (A & (K1 | K2)) == (K1 | K2)
More information about the All-commits
mailing list