[llvm-branch-commits] [llvm] InstCombine: Handle exp/exp2/exp10 in SimplifyDemandedFPClass (PR #173432)

Yingwei Zheng via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Dec 25 06:51:13 PST 2025


================
@@ -2106,6 +2106,98 @@ Value *InstCombinerImpl::SimplifyDemandedUseFPClass(Value *V,
       Known.copysign(KnownSign);
       break;
     }
+    case Intrinsic::exp:
+    case Intrinsic::exp2:
+    case Intrinsic::exp10: {
+      if ((DemandedMask &
+           (fcPosZero | fcPosSubnormal | fcPosNormal | fcPosInf)) == fcNone) {
----------------
dtcxzyw wrote:

```suggestion
           fcPositive) == fcNone) {
```

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


More information about the llvm-branch-commits mailing list