[llvm] [InstCombine] Extend bitmask mul combine to handle independent operands (PR #142503)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 27 22:15:16 PDT 2025
================
@@ -3659,6 +3666,106 @@ static std::optional<DecomposedBitMaskMul> matchBitmaskMul(Value *V) {
return std::nullopt;
}
+// (A & N) * C + (A & M) * C -> (A & (N + M)) & C
----------------
dtcxzyw wrote:
Use `///`
https://github.com/llvm/llvm-project/pull/142503
More information about the llvm-commits
mailing list