[PATCH] D148655: ValueTracking: Handle powi in computeKnownFPClass

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 01:18:21 PDT 2023


foad added inline comments.


================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:4547
+      case Intrinsic::powi: {
+        if ((InterestedClasses & KnownFPClass::OrderedLessThanZeroMask) ==
+            fcNone)
----------------



================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:4572
+        computeKnownFPClass(II->getArgOperand(0), DemandedElts,
+                            InterestedClasses, KnownSrc, Depth + 1, Q, TLI);
+        if (KnownSrc.isKnownNever(fcNegative))
----------------
Passing InterestedClasses doesn't really work here if it is only a subset of fcNegative.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148655/new/

https://reviews.llvm.org/D148655



More information about the llvm-commits mailing list