[llvm] [InstCombine] Resolve incorrect submasking in foldIntrinsicIsFPClass (PR #190504)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 07:26:57 PDT 2026


================
@@ -863,6 +863,37 @@ define i1 @test_class_is_not_nan_nnan_src_strict(float %x) strictfp {
   ret i1 %class
 }
 
+; Fold to true when known classes are a strict subset of the mask
----------------
dtcxzyw wrote:

Yes if it is moved above the `(Mask & Known.KnownFPClasses) != Mask` check.


https://github.com/llvm/llvm-project/pull/190504


More information about the llvm-commits mailing list