[llvm] [InstCombine] Fold isnan idioms (PR #101510)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 09:24:20 PDT 2024
================
@@ -363,8 +363,28 @@ static Value *foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed(
// deduce anything from it.
// For example,
// (icmp ne (A & 12), 0) & (icmp eq (A & 3), 1) -> no folding.
- if ((*BCst & *DCst) == 0)
+ if ((*BCst & *DCst) == 0) {
----------------
arsenm wrote:
!BCst->intersects(DCst)?
https://github.com/llvm/llvm-project/pull/101510
More information about the llvm-commits
mailing list