[llvm] [InstCombine] Fold isnan idioms (PR #101510)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 09:25:33 PDT 2024
================
@@ -339,8 +339,8 @@ static Value *foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed(
//
// We currently handle the case of B, C, D, E are constant.
//
- const APInt *BCst, *CCst, *DCst, *OrigECst;
- if (!match(B, m_APInt(BCst)) || !match(C, m_APInt(CCst)) ||
+ const APInt *BCst, *DCst, *OrigECst;
+ if (!match(B, m_APInt(BCst)) || !match(C, m_Zero()) ||
----------------
goldsteinn wrote:
Was this just buggy before?
https://github.com/llvm/llvm-project/pull/101510
More information about the llvm-commits
mailing list