[llvm] [TargetLowering] Fold (a | b) ==/!= b -> (a & ~b) == /!= 0 when and-not exists (PR #145368)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 24 08:06:35 PDT 2025
================
@@ -4212,6 +4212,53 @@ SDValue TargetLowering::foldSetCCWithAnd(EVT VT, SDValue N0, SDValue N1,
return SDValue();
}
+/// This helper function of SimplifySetCC tries to optimize the comparison when
+/// either operand of the SetCC node is a bitwise-or instruction.
----------------
AZero13 wrote:
In the event more patterns are added, then what? Maybe for now this would work, but sure.
https://github.com/llvm/llvm-project/pull/145368
More information about the llvm-commits
mailing list