[llvm] [InstCombine] Support DemandElts in SimplifyDemandedFPClass (PR #174176)
Stefan Weigl-Bosker via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 2 08:49:39 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,
----------------
sweiglbosker wrote:
iirc llvm::ComputeKnownFPClass does take a SimplifyQuery, this is just an internal wrapper to avoid doing SQ.getWithInstruction(I) all over the place to make the code nicer. The original code used the same wrapper so I added it to make the change more straightforward
https://github.com/llvm/llvm-project/pull/174176
More information about the llvm-commits
mailing list