[llvm] [InstCombine] Support DemandElts in SimplifyDemandedFPClass (PR #174176)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 2 09:22:59 PST 2026


================
@@ -211,6 +211,15 @@ class LLVM_LIBRARY_VISIBILITY InstCombinerImpl final
         Depth);
   }
 
+  KnownFPClass computeKnownFPClass(Value *Val, const APInt &DemandedElts,
+                                   FastMathFlags FMF,
+                                   FPClassTest Interested = fcAllFlags,
+                                   const Instruction *CtxI = nullptr,
----------------
arsenm wrote:

Yes, ComputKnownFPClass does, but it would help if it looked more like SimplifyDemandedBits

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


More information about the llvm-commits mailing list